Comparative Histograms

In reference to a previous article on Violin Plots, a reader asked about creating comparative mirrored histograms to compare propensity scores.  While I had my own understanding of "Mirrored Histograms", I also looked this up on the web.  Google showed many cases of two histograms back to back, either horizontally or vertically.  […]

Post a Comment

Getting Started with GTL - 1 - Scatter Plots

I am happy to report that my new book "Getting Started with the Graph Template Language in SAS" is now shipping.  A colleague suggest it would be useful to post some articles with the same theme  of "Getting started".  I thought that was a great idea, and decided to start a new […]

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

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