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
Author
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
SGF 2015 was a blast with a focus on Visual Analytics, SAS Studio, Hadoop and more. Graphs were everywhere, and it was a banner year for ODS Graphics with over 15 papers and presentations by users on creating graphs using SG Procedures, GTL and Designer. Dan Heath, Prashant Hebbar, Scott
A very common type of graph contains two series plot, where the user is expected to evaluate the difference visually. I saw one such plot on the web today shown on the right. This graph has two curves, one for malpractice premiums and one for claims, with a shaded band
MicroMaps are a powerful way to display data where the display includes small, lightweight maps to provide geographical information regarding the data. This geographical information gives clues to the relationship between the data that could lead to more insight. The SAS SG Procedures and GTL do not currently have built-in
Back in late 2012 I discussed a technique for Conditional Highlighting, where additional attributes can be displayed in a graph. In the previous article the goal was to display a graph of Response by Year by Drug. We used a cluster grouped bar chart to create the bar chart. We
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
In the previous article, I described the process to create a 3D Scatter Plot using a 3D Orthographic View matrix and the SGPLOT procedure. I posted a macro that can be used to create a 3D scatter plot from any SAS data set, using 3 numeric columns, one each for
The SG Procedures do not support creating a 3D scatter plot. GTL has some support for 3D graphs, including a 3D Bi-variate Histogram and a 3D Surface, but still no 3D point cloud. The lack of such a feature is not due to any difficulty in doing this as
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
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
Including special Unicode symbols into the graph is getting more popular. In general, SG procedures support Unicode strings in places where these strings are coded into the syntax such as TITLE, FOOTNOTE. These support Unicode characters and also the special {SUP} and {SUB} commands. This is because these statements are rendered
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
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
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
Often we need graphs that display two or more responses by the same category values. In many cases it is useful to plot both responses on the same response (Y) axis. This can be helpful to understand the data and compare the magnitudes side by side. This works when the scales
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
As Sheldon Cooper would say, this is the first episode of "Fun with Charts". I did not find a cool term like "Vexillology" and "Cartography" is taken by map making, so let us go with "Chartology". Yesterday, I saw a couple of interesting bar charts as shown on the right. I thought
Often, we have data where most of the observations are clustered within a narrow range, with a few outliers positioned far away. When all the data is plotted, the axis is scaled to accommodate all the data, thus skewing the scale. Techniques to handle such data have been addressed earlier
This week I had the opportunity to present a 1/2 day seminar on creating clinical graphs using the SG procedures during an In-House SAS Users' group meeting. I have presented this seminar quite a few times now, and I always learn something. The audience was very receptive, with some people
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
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
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
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
Getting consistent group colors across different data sets for a graph is a common topic of interest. Recently a user wrote in to ask how to ensure that specific groups "values" for a bar chart get specific colors. The group values may arrive in different order, or some may
The Mid-West SAS Users' Group conference in Chicago was a great success, with over 400 attendees and great weather. The conference hotel was in downtown with nice view of the river and a stroll down "Magnificent Mile". The city does a great job with the flower beds down Michigan Ave., along
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
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
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
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