## Scatter Plot with Stacked Histograms

Last week a user expressed the need to create a graph like the one shown on the right using SAS.   This seems eminently doable using GTL and I thought I would undertake making this graph using SAS 9.3. The source data required to create this graph is only the […]

## HeatMap with Numeric and Discrete Variables

Heat maps are a great way to visualize the bi-variate distribution of data.  Traditionally, a heat may may have two numeric variables, placed along the X and Y dimension. Each variable range is sub divided into equal size bins to create a rectangular grid of bins.  The number of observations […]

## Graphs are easy in SAS University Edition

By now you have heard all about the SAS(R) STUDIO software that provides access to the power of SAS analytics in a Web browser.  The SAS(R) University Edition is also available free for higher education teaching, learning and  research. This software includes ODS Graphics software for creating graphs.  You can […]

## R U Graphing with SAS?

In recent conversations with many SAS users at NESUG, SESUG and WUSS, a pattern emerges on the question of creating graphs with SAS or R.  Many SAS users are aware of the new graph features in SAS that create high quality graphs with minimum fuss.  But, many have not actually used […]

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

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

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

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

Welcome to Graphically Speaking, a blog by Sanjay Matange focused on the usage of ODS Graphics for data visualization in SAS. The blog will cover topics related to the Statistical Graphics procedures, the Graph Template Language and the ODS Graphics Designer. Sanjay is author of Clinical Graphs Using SAS
Getting Started with the Graph Template Language in SAS
Statistical Graphics Procedures by Example: Effective Graphs Using SAS