Tag: SGPLOT

Data Visualization
Sanjay Matange 0
Is that Annotate?

The SGPLOT procedures includes features to add annotations to your graph in many different ways.  Annotations provide you a flexible way to add features to your graph that are not available through the standard plot statements. Recently, I saw this graph on the web that caught my attention.  Clearly, this looks like

Data Visualization
Sanjay Matange 0
Report from PharmaSUG 2015

PharmaSUG 2015 in Orlando was held at the Renaissance had a record breaking attendance of over 650.  Weather was great, except for a huge downpour on the evening of the last day.  All the popular presenters were in attendance including Art Carpenter, Kirk Lafler, Arthur Li and many others. Presentations

Data Visualization
Sanjay Matange 0
Sankey Diagrams

Sankey Diagrams have found increasing favor for visualization of data.  This visualization tool has been around for a long time, traditionally used to visualize the flow of energy, or materials.   . Now to be sure, GTL does have a statement design for a Sankey Diagram which was implemented only in Flex for use

Data Visualization
Sanjay Matange 0
Margin Plots

Last week a user wanted to view the distribution of data using a Box Plot.  The issue was the presence of a lot of "bad" data.  I got to thinking of ways such data can be visualized.  I also discussed the matter with our resident expert Rick Wicklin who pointed

Data Visualization
Sanjay Matange 0
Cancer Deaths Averted

Significant progress in reduction of Cancer mortality is shown in a graph that I noticed recently on the Cancer Network web site.  This graph showed the actual and projected cancer mortality by year for males.  The graph is shown on the right. The graph plots the projected and actual numbers

Data Visualization
Sanjay Matange 0
Marker Symbols

There has been much discussion on the SAS Communities page on usage of different symbols in a graph.  The solutioin can vary based on the SAS release.  New features have been added at SAS 9.4 releases to SG Procedures and GTL that make this very easy.  With SAS 9.4M1, almost any combination is

Data Visualization
Sanjay Matange 0
Custom Labels

Over the Christmas Holidays I saw an graph of agricultural exports to Russia in 2013.  The part that caught my eye was the upper part of the graph, showing the breakdown of the trade with Russia as a horizontal stacked bar with custom labels. The value for each region / country

Data Visualization
Sanjay Matange 0
Graph Table

A common scenario is where we have a table of multiple measures over time. Here we have a simple example of Frequency and Response by Day.  The Response is a linear function of the Frequency, as shown in the table on the left below. The  shape of the data is

Data Visualization
Sanjay Matange 0
Axis Thresholds

Have you ever wondered why sometimes a SGPLOT or GTL graph has markers drawn beyond the extreme tick and value on an axis and sometimes not?  And, if you prefer your graphs to always have tick values on the axis that cover the whole range of data, how can you

Data Visualization
Sanjay Matange 0
Bar with Statistics

One of the key benefits of using a horizontal bar chart is the ability to display statistics for each bar.  This is a popular feature for the HBAR statement with the SAS/GRAPH GCHART procedure.  So, let us review the options available to us to create such graphs using SGPLOT. The

Data Visualization
Sanjay Matange 0
Likert Graphs

Just this morning I received a request for a brief survey from Apple on my feedback about the new iPhone6+.  Yes, I finally got one, dead last in the family.  The survey followed the usual format, with a number of questions on what I like or dislike about it, with

Data Visualization
Sanjay Matange 0
CandleStick Chart

A HighLow plot is very popular in the financial industry, often used to track the periodic movement of a stock or some instrument or commodity.  The CandleStick Chart is one specific type of high low plot, purportedly originating in Japan for tracking of financial instruments in the rice trade. Creating a

Data Visualization
Sanjay Matange 0
Splines

Many users of SGPLOT and GTL know how to mix and match various plot statements to create graphs, sometimes in ways not originally intended.  You are also aware that you can go a step beyond, and use these systems to create completely non-standard graphs such as the Spiral Plot, the Polar

Data Visualization
Sanjay Matange 0
PharmaSUG-China 2014

The Third PharmaSUG-China conference was held in Beijing last week, and I had the pleasure to attend this excellent conference along with a record number of attendees. On Thursday, I presented two 1/2 day seminars on ODS Graphics.  One titled "Advanced Topics in GTL" and another titled "Complex Clinical Graphs

Data Visualization
Sanjay Matange 0
Binary Response Graph

Often we need to plot the response values for binary cases of a classifier.  The graph below is created to simulate one seen at http://www.people.vcu.edu/ web site of the shock index for subjects with or without a pulmonary embolism.  In this case, the data is simulated for illustration purposes only. There

Data Visualization
Sanjay Matange 0
More on Spaghetti Plots

In her article Creating Spaghetti Plots Just got Easy, Lelia McConnell has provided us a glimpse into some new useful features in the SAS 9.4M2 release.  The term Spaghetti plots generally refers to cases where time series plots have to be  identified by multiple group classifications.  The support for the

Data Visualization
Sanjay Matange 0
Epidemic Curve Graph

A few weeks back I wrote an article on Grouped Timeline for creating a stacked timeline for onset of different virus.  The idea in that article was to display a stacked needle on a time axis using a HighLow plot. Such graphs are also referred to as EPI or Epidemic Curve

Data Visualization
Sanjay Matange 0
Overlay Bar Charts

A couple of days back, Rick Wicklin forwarded me a link to an article on the BadHessian Blog on creating a Bar Chart using six different freeware packages in R, Python and Julia.   The target bar chart was one produced by the Jetpack stat module with WordPress.  The graph is shown below. The unique feature of

Data Visualization
Sanjay Matange 0
Spirals

Spirals are cool.  And useful.  We use them every day without thinking about it.  Every time the road turns from a straight line to a curve, we go through a transition spiral.  Spirals allow us to change curvature in a steady increasing or decreasing fashion.   Without a spiral, this

Data Visualization
Sanjay Matange 0
The HIGHLOW Plot

SG Procedures and GTL provide you with a large set of plot statements, such as BarChart, ScatterPlot, BoxPlot and more.  You can use them for the intended purpose, and all is well and good.  However, the real fun starts when you leverage a plot to do something that was not

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

1 3 4 5 6