Scatter plot matrix with a twist

The Scatter Plot Matrix statement supports a couple of different configurations.  The basic is the N x N panel of cells, with each cell showing scatter plots plot for a pair of variables at a time.  Here is an example of a 3 x 3 scatter plot matrix for the [...]

Post a Comment

Comparative density plots

Recently a user posted a question on the SAS/GRAPH and ODS Graphics Communities page on how to plot the normal density curves for two classification levels in the same graph. We have often seen examples of a  distribution plot of one variable using a histogram with normal and kernel density curves.  Here is a simple example: Code Snippet: [...]

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