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
Tag: SGPLOT
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
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
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
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
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
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
SAS 9.4 maintenance release M2 was released early in August. This release contains some exciting new features in GTL and SG Procedures. In this article, I will describe some of the new options added to the existing plot statements. Note, I will use the SG examples here, but these are
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
This article is by guest contributor Lelia McConnell, SAS Tech Support. Creating Spaghetti Plots Just Got Easy Sample 38076: “Response by patient and treatment group” illustrates how to generate a spaghetti plot using the SGPLOT procedure. Sample 40255: “Plot of study results by treatment group” illustrates how to generate a
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
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
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
It was almost two weeks ago that I got started making a display for lab tests for a subject, based on a graph I saw on the web for an article on this blog. This graph is a part of a larger panel display of the lab values for a
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
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