Grouped Bar Chart with StatisticsTable

Creating a Bar Chart with a table of statistical data aligned with the bars is a popular topic.  With SAS 9.4, creating such graphs gets easier with the new AXISTABLE statement in GTL and SG procedures.  But some use cases can flummox the latest gizmos.  Such is the case I ran into recently. Here […]

Post a Comment

Stacked Bar Chart with Segment Labels

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 […]

Post a Comment

Clark Error Grid Graph

The SAS Global Forum conference last week was awesome.  From the perspective of graphics, there were more papers from uses on graphics and ODS graphics then in recent times.  I will post a summary shortly. One of the interesting papers was "#113-2013 - Creating Clark Error Grid using SAS/GRAPH and Annotate..." […]

Post a Comment

A Better AE Timeline

Back in February, I posted an article on creating Adverse Event Timeline Graph.  In the SAS 9.2 version (first one), one item that was less than ideal was the way to position the AE names to the left of the event.  The AE names are displayed using the scatter plot statement […]

Post a Comment

Non-breaking space

Forest plots come in many flavors.   An example of a Forest plot using GTL is available on the SAS support web site.  Simple forest plots can also be created using SGPLOT procedure by using the SCATTER statement with MARKERCHAR to display data aligned with the plot by study names. One issue […]

Post a Comment

Butterfly plots

When comparing results by category and group,  putting the items to be compared close together usually leads to a graph that is easier to decode.  Take the case of the data (simulated) shown below. Here we have population by age group and sex.  To compare the population by sex, it is […]

Post a Comment

Graphical display of statistics

Statistical graphs often include display of derived statistics along with the raw data.  Often these statistics are presented in a tabular format inside the graph.  With SGPLOT procedure, a table of statistics can be added to the graph as an inset table, as shown below. Using a Stat Table: SGPLOT code: […]

Post a Comment