Tips and Tricks

Tips and Tricks

Data Visualization
Sanjay Matange 0
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. 

Data Visualization
Sanjay Matange 0
Healthcare.gov numbers

Working at SAS, I consider myself fortunate to have the best employee benefits in the industry.  That is one of the factors placing SAS as one of the best companies to work for worldwide, and often THE best company to work for in USA. Given that, I was curious to know the kind

Data Visualization
Sanjay Matange 0
Schedule Chart

Last week Bruno asked about creating a Schedule Chart using SG Procedures.  To me, such projects are very interesting and challenging...How much mileage can we get out of the current set of SGPLOT procedure features to create a visual that was not part of the original requirements? The clear choice for

Data Visualization
Sanjay Matange 0
Video says it better

SAS 9.4 was released a month ago, and we are excited about all the new features in SG Procedures, GTL and Designer.  I wrote an article on SAS 9.4 graph features last month, and promised more to come. What then could be better than this Tech Talk video hosted by our

Data Visualization
Sanjay Matange 0
Schematic Plot

Recently a user chimed in on the SAS Communities page, requesting a way to add some observation level annotation to a box plot.  Wendy was delighted to see a graph created by the UNIVARIATE procedure called "Schematic Plot".  In this graph, the box plot of the analysis variable is shown with

Data Visualization
Sanjay Matange 0
BarLine Graphs

A Bar Line graph is commonly used in many domains.  The SGPLOT procedure makes it easy to create bar line graphs where the user can customize it in many different ways.  This post is prompted by a recent question on the communities page on creating such a graph, with one bar and

Data Visualization
Sanjay Matange 0
Animation using SGPLOT

Often we want to visualize the relationship between variables over time.  The understanding of such data can be improved by viewing the animated graph over time.  With SAS 9.4, you can create animated graphs using the new animation options on the OPTIONS statement and the PRINTER destination. A popular example an

Data Visualization
Sanjay Matange 0
Clark Error Grid Graph

The SAS Global Forum conference last week was awesome.  From the perspective of graphics, there were more papers from uses on graphics and ODS graphics then in recent times.  I will post a summary shortly. One of the interesting papers was "#113-2013 - Creating Clark Error Grid using SAS/GRAPH and Annotate..."

Data Visualization
Sanjay Matange 0
Attributes Map - 2

Last week I wrote about how you can use the Discrete Attributes Map to ensure that group values with specific names are represented in the graph with specific colors or other visual  attributes such as marker symbol or line pattern. This attributes map also supports a special keyword "OTHER" which can be used to

Data Visualization
Sanjay Matange 0
Custom Box Plots

A frequent question we get from users is how to create a box plot with custom whiskers lengths.  Some want to plot the 10th and 90th percentile, while other want the 5th and 95th percentiles.  The VBOX statement in the SGPLOT  procedure does not provide for custom whiskers.  Also, unlike GTL,

Data Visualization
Sanjay Matange 0
Box with Scatter Overlay

A common request we have been often hearing is for display of the distribution of data as a box plot, along with some detailed information overlaid.  For example, one may have ratings data of all the hospitals in a region by different specialty, and you want to view this distribution

Data Visualization
Sanjay Matange 0
Parametric Bar Charts

A parametric bar chart in SG Procedure and GTL parlance is a simplified version of the regular bar chart, where the data is assumed to be summarized prior to its usage inside the SG procedures or GTL.  So, multiple occurrences of the same category and / or group combination is

Data Visualization
Sanjay Matange 0
GTL Layouts

The Graph Template Language (GTL) provides you the ability to create complex graphical layouts. We have seen how to create a regular grid of cells based on one or more classification variables using the SGPANEL procedure.   Each cell contains the same type of plot.  This topic was covered in Dan's article on

Data Visualization
Sanjay Matange 0
Percent VBar

Recently a reader chimed in with a question on the Do Loop article by Rick Wicklin on how to create a bar chart with percent statistics.  Rick used SAS 9.3  and the reader wanted to do the same with SAS 9.2. For the basic (non-grouped) bar chart, the process is the

Data Visualization
Sanjay Matange 0
AE Timeline by Name

In my previous article on Adverse Event Timeline Graph, I wrote about how to create the AE timeline using SAS 9.2 code, using VECTOR plot and the MARKERCHAR option in SCATTER plot.  I  described a better way to place the labels at the lower end of the vectors. SAS 9.3 provides an easier way

1 7 8 9 10 11 12

Back to Top