This is the 7th installment of the Getting Started series. The audience is the user who is new to the SG Procedures. Experienced users may also find some useful nuggets of information here. Starting with SAS 9.3 which was released 6 years ago, the SGPLOT procedure supports many new plot types including
Tag: HighLow Plot
Often I have written articles that are motivated by some question by a user on how to create a particular graph, or how to work around some shortcoming in the feature set to create the graph you need. This time, I got a question about Clinical Graphs that were mostly working
This weekend I was reviewing my portfolio of stocks as usual. Yes, I do have a small stock portfolio with a few stocks, and normally I use free stock charting software to review the stock plots. These sites allow you to view the daily stock prices along with many technical
Last week I posted an article on displaying polar graph using SAS. When the measured data (R, Theta) are in the polar coordinates as radius and angle, then this data can be easily transformed into the XY space using the simple transform shown below. x=r*cos(theta * PI / 180); y=r*sin(theta * PI
A HighLow plot is very popular in the financial industry, often used to track the periodic movement of a stock or some instrument or commodity. The CandleStick Chart is one specific type of high low plot, purportedly originating in Japan for tracking of financial instruments in the rice trade. Creating a
At PharmaSUG 2014 in San Diego, I had the pleasure of attending "Swimmer Plot: Tell a Graphical Story of Your Time to Response Data Using PROC SGPLOT", by Stacey Phillips. In this paper, Stacey presented an interesting graph showing the effects of a study drug on patients' tumor size. Stacey
Recently, a user posed a question on how to plot stacked frequencies on a time axis. The data included frequencies of different viruses by week. The data is modified to preserve confidentiality and is shown below. The user's first instinct was to use a bar chart with stacked groups. This works for automatically computing frequencies
It was almost two weeks ago that I got started making a display for lab tests for a subject, based on a graph I saw on the web for an article on this blog. This graph is a part of a larger panel display of the lab values for a
A couple of weeks back I described q way to create a Schedule Chart using the SGPLOT procedure. In that case, I used the HIGHLOW plot to draw bar segments, both for a single and grouped case. A natural extension is to create one with links between each segment. So,
Last week Bruno asked about creating a Schedule Chart using SG Procedures. To me, such projects are very interesting and challenging...How much mileage can we get out of the current set of SGPLOT procedure features to create a visual that was not part of the original requirements? The clear choice for
A couple of weeks back we had a question on how to make a bar chart with stacked and clustered groups. User also wanted to display the value for each stacked segment below the bars. The article Bar Charts with Stacked and Cluster Groups shows how to create such a
As promised, here is a better combined AE-CM graph, using some of the UI improvements suggested by our UI expert, Riley. His suggestions helped to reduce the clutter in the graph, while still keeping all the features preferred by our users. Click on the graphs for a higher resolution image.
At the SAS Global Forum 2013 in San Francisco, I presented a paper on making Patient Profile Graphs using SAS. You can follow the link to see the graphs presented in this paper. In that paper, I presented ways to create AE, CM, VS and Lab graphs. I discussed aligning the
In my previous article on Adverse Event Timeline Graph, I wrote about how to create the AE timeline using SAS 9.2 code, using VECTOR plot and the MARKERCHAR option in SCATTER plot. I described a better way to place the labels at the lower end of the vectors. SAS 9.3 provides an easier way
Over the past month or more, I have been in a conversation with SAS user James Marcus, on creation of some new displays for visual communication of uncertainty. These include display of densities using a "Violin" plot, "Density Strips" and more. With his permission, I can share some of the
In the previous post on Broken Y-Axis, I reviewed different ways to display data as a Bar Chart, where the response values for some categories are many orders of magnitude larger than the other values. These tall bars force the display of other values to be squeezed down thus making it harder to compare
Often we want to display data as a bar chart where a few observations have large values compared to the rest. Comparison between the smaller values becomes hard as the small bars are squeezed by the tall bars. Here is an example data, and a bar chart showing the data. The large values
Creating bar charts with log response axis has come up a few times in the past few days. Before we look into how we could do this, it would be worth pointing out the considerable opinion in the blogosphere against use of log response axes for bar charts. See BizIntelGuru and
Recently, a user asked about creating a Bar Chart of Value by Date, where the dates are displayed on a scaled interval axis. Consider this simulated data set of value by date and treatment shown below. This data set only has one value for each date and treatment combination. We can use the VBAR statement
Here is the second installment of sample graphs from the SG Procedures book - The Adverse Event Timeline. This is a graph commonly used in patient profiles for clinical trials where we track the progress of a patient through a hospitalization event, tracking the dates and severity of the adverse events. The