Author

Sanjay Matange
RSS
Director, R&D

Sanjay Matange is R&D Director in the Data Visualization Division responsible for the development and support of the ODS Graphics system, including the Graph Template Language (GTL), Statistical Graphics (SG) procedures, ODS Graphics Designer and related software. Sanjay has co-authored a book on SG Procedures with SAS/PRESS.

Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 0
Spark table

In the previous post, I discussed creating a 2D grid of spark lines by Year and Claim Type.  This graph was presented in the SESUG conference held last week on SAS campus in the paper ""Methods for creating Sparklines using SAS" by Rick Andrews.  This grid of sparklines was actually the

Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 0
Spark grid

The 25th annual SESUG conference was held at in the SAS campus this week.  I had the opportunity to meet and chat with many users and attend many excellent presentations.  I will write about those that stood out (graphically) in my view. One excellent presentation was on "Methods for creating

Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 0
Long category values

The South East SAS Users Group meeting wound up yesterday.  The 25th anniversary conference was held on SAS Campus and it provided a great opportunity to meet with many enthusiastic SAS users and attend many informative presentations.  More on this in a follow-up article. During one of these presentations, Mary

Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 0
Legend order redux

Once in a while you run into a pesky situation that is hard to overcome without resorting to major surgery.  Such a situation occurs when you have a stacked bar chart with a discrete legend positioned vertically on the side of the graph.  A simple example is shown below. title

Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 0
Legend items

Plot statements included in the graph definition can contribute to the legend(s).  This can happen automatically, or can be customized using the KEYLEGEND statement.  For plot statements that are classified by a group variable, all of the unique group values are displayed in the legend, along with their graphical representation

Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 0
Tips and tricks: Segmented discrete axis

The previous post on Multiple Blank Categories showed how to include multiple blank categories on the axis.  But, given the purpose for this was to separate different segments in the data, I also included ideas on how to segmented a discrete axis using reference lines or Block Plot.  A similar idea

Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 0
Tips and tricks - Multiple blank categories on axis

Off and on, users have expressed the need to include multiple blank categories on a discrete axis.  Often, this is desirable to separate groups of bars (or categories) in a graph due to some difference their definition.  Such a case was discussed in this blog article on using non breaking

Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 0
New Features in SAS 9.40M5 - Gradient fills

ODS Graphics procedures primarily strive towards the following goal:  "Make simple graphs easy and complex graphs possible".   SGPLOT procedure allows you create simple graphs with a single plot statement, and create complex graphs by layering together or combining multiple plot statements.  Generally, the appearance follows the guidelines set by industry

Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 0
New features with SAS 9.40 M5

SAS 9.4 maintenance release 5 was released on Sept 19, 2017.  This release includes many new items including integration with SAS Viya and SAS Studio, a web application for SAS development.  Also Included with this release are some cool new features in the graphics domain, some of which were requested

Analytics | Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 0
Getting started with SGPLOT - Part 8 - Horizontal HighLow Plot

On a recent visit to an In-House Users Group meeting at a Pharmaceutical company, I presented a 1/2 day seminar on creating Clinical Graphs using SG Procedures.  Polling the audience for their experience with these procedures indicated that many SAS users are not familiar with these new ways to create graphs. So,

Data Visualization
Sanjay Matange 0
Stock chart

In the previous article on Getting Started with Vertical HighLow Plot, I described how we can use the HighLow plot to display the stock price by date.  The HighLow plot is specifically designed for such use cases as shown below. The data is downloaded from the Nasdaq web site, and

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 10