Tips and Tricks

Tips and Tricks

Data Visualization | Programming Tips
Warren F. Kuhfeld 0
Advanced ODS Graphics: Examining and processing templates

This post shows a variety of techniques including how to use PROC TEMPLATE and the SOURCE statement, PROC SGPLOT with multiple Y-axis tables, create comparable axes in two side-by-side graphs, create a broken axis, write and use a table template that wraps text, and find and display examples of certain statements in graph templates and fonts in style templates.

Data Visualization
Sanjay Matange 0
Lollipop Charts

Recently, while reading up on Wilkinson and Cleveland Dot plots, I saw this excellent article by Xan Gregg on the topic.  I also saw some interesting examples of Lollipop Charts, kind of a dot plot with statistics along with a drop line, maybe more suitable for sparse data.  I thought

Data Visualization
Sanjay Matange 0
Image backgrounds

As many of the regular readers of this blog know, SGPLOT and GTL, provide extensive tools to build complex graphs by layering plot statements together.  These plots work with axes, legends and attribute maps to create graphs that can scale easily to different data. There are, however, many instances where

Data Visualization
Sanjay Matange 0
Stem and Leaf plot

A Stem and Leaf plot is a visual that can help quickly visualize the distribution of the data.  This graph was particularly useful before the advent of modern statistical graphs including the Histogram and Box Plot.  One nice feature of the plot is it shows the actual values in the

Data Visualization
Sanjay Matange 0
Scatter with mean value

A frequently requested statistical graph is the scatter plot by with discrete categories along with mean value for each category.  Searching for a "Scatter with Mean" will return a lot of requests for such a graph in SAS, Stata, R and other statistical software. Such a graph is very easy

Data Visualization
Sanjay Matange 0
Category highlighting

When presenting information in form of a graph we show the data and let the reader draw the inferences.  However, often one may want to draw the attention of the reader towards some aspect of the graph or data.  For one such case, a user asked how to highlight one

Data Visualization
Sanjay Matange 0
Should we move to Ireland?

Recently, while browsing health care data, I came across the graph shown below.  The graph includes the healthy life expectancy at birth by countries in the EU, along with the associated per capita expenditure.  The graph also shows estimate of potential gain in life expectancy by increasing expenditure efficiency. The

Data Visualization
Sanjay Matange 0
Diagonal tick values

Fitting of long category values on a x-axis is usually a challenge.  With SAS 9.4, the SGPLOT procedure tries to fit the values by first splitting the values at white space to see if the values will fit in the space available.  This normally works well for a small number

1 2 3 4 5 12

Back to Top