Naomi's Graph Makeover Contest

Naomi Robbins has posted a contest, part 1 of which is to submit alternative representations for the following graph: Clearly, usage of two pie charts to represent the share of the B2B and B2C referrals will invite many responses.  To create the graph, I took the data shown in the Pie Charts themselves, so we are using percent […]

Post a Comment

Bar chart with response sort

A graph in a recent article in Fortune magazine caught my eye.  The graph shows the cost of hosting the Summer Olympics over the past eight events.  Here is what I termed the "Medal" graph. Now, practitioners of the art of Effective Graphics would likely find some shortcomings in the graph.  Clearly […]

Post a Comment

Broken Y-Axis with SAS 9.2

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

Post a Comment

Broken Y-Axis

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

Post a Comment

Dual category variable graph

This post is a result of an intriguing question posed by a user on the SAS communities' page.  How to create a bar chart where the category is a combination of two variables var_1 and var_2 (each with values of '+' and '-'), and get a X axis that shows each […]

Post a Comment

Bar chart with log response axis

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

Post a Comment

Bar chart on interval axis

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

Post a Comment

Cluster groups

The topic of cluster groups comes up often.  By cluster group I am referring to the feature in bar charts where the group values are displayed side by side. With SAS 9.3, SG Procedures support stack or cluster grouping for Bar Charts and overlay or cluster grouping for all other […]

Post a Comment

Let them eat pie

ODS Graphics system was initially motivated by the need for high quality graphs for SAS Base, STAT, and other analytical procedures.  Use of SG Procedures, ODS Graphics Designer and GTL by users too has initially focused on analytical graphs.  But just like wheels on carryon bags that started for the specific needs of flight […]

Post a Comment

Nested graphs

Here are a couple of bar charts showing the city mileage of cars by Type and Origin using the SGPLOT procedure from the sashelp.cars dataset. title 'Vehicle Mileage by Type'; proc sgplot data=cars; format mpg_city 4.1; vbar type / response=mpg_city stat=mean datalabel; xaxis display=(nolabel); run; title 'Counts by Country'; proc sgplot […]

Post a Comment