For a long time, Starbucks represented to me as the good coffee cup, with me paying upwards of $4 for a Latte. But on a recent visit to San Francisco, my son introduced me to a few other options. Philz crafts a great cup of java, with the barista making
Author
Recently a user was working with the HBAR statement with cluster groups with SG procedures. User wanted to see the group values on the axis. SGPLOT does not display multi level axes as these are shared with different plot types. However, with SGPLOT, there is often a way to get
Most regular readers may have already noticed the release of my new book "Clinical Graphs using SAS", as indicated by the icon of the book cover and the link to the SAS Press page under the "About this blog" section on the right. This book is a result of the various
Returning from my recent visit to India, I was reading an article that included a graph with a series plot where the color of the series itself changed based on the Y response. Now, for sure, the SAS 9.40M3 SERIES plot in the SGPLOT procedure supports color response, but that applies
Let us continue with our journey beyond standard plots and charts. Often we need to create some simple diagrams to visualize the connections between different entities such as patients and providers or even a social network. Many of you may not have a custom tool to create diagrams. But you have Base SAS, so
Last week I posted an article on creating Infographics using SAS. The interest shown by the SAS community in this topic came as a surprise. Also, it so happened by coincidence, a SAS users also called into Tech Support just about the same time with a query about creating Infographics type graph
Last week a question was posted on the communities page about creating Box Plots where the width of each box is proportional to the frequency for the category. The comment was that PROC BOXPLOT can create such a graph, but there seems no way to do this using the SGPLOT
Infographics are all the rage today. Open any magazine or newspaper and we see data and numbers everywhere. Often, such information is displayed by adding some graphical information to add context to the data. A couple of good examples are Communicating numeric information, and Facts about Hot Dogs. Riley Benson, our UX
In the previous article on managing legends, I described the way to include items in a legend that may not exist in the data. This is done by defining a Discrete Attribute Map, and then requesting that all the values defined in the map should be displayed in the legend. In
Entries in a legend are populated automatically based on the data. When creating a graph with group classification, the display attributes for each bar are derived from the GraphData1-12 style elements from the active style. The graph on the right shows you the result of creating an adverse event timeline
Last month I wrote an article on connecting multiple statistics by category in a box plot using SGPLOT. In the first article I described the way you can do this using overlaid SERIES on a VBOX using SAS 9.4, which allows such a combination. However, if you have SAS 9.3,
Let us start the new year by taking a trip back in history to SAS 9.2, first released in 2008, and the first SAS release that included the new ODS Graphics software including GTL and SG procedures. While we have recently released the third maintenance on SAS 9.4 (SAS 9.40M3),
An interesting question came up recently, where a colleague wanted to create a bar line chart with Revenue on the Y axis and Profit on the Y2 axis. The Revenues were all positive, but the Profit had positive and negative values. Some data I generated is shown on the right. Creating this
A Box Plot is very popular to view the distribution of an analysis variable with one or more classifiers. Also, everyone wants to customize the graph in different ways. One recent request was for creating a box plot by category and group along with the display of various statistics and overlaid
In the previous article I described a way to create a box plot with multiple connect lines using SAS 9.40M1 or later release . I created the graph using SGPLOT with VBOX and overlaid SERIES statements. Such an overlay of a basic plot on the VBOX statement is supported starting
This blog post is motivated by a post by a user on the communities page about creating a box plot with colored boxes by category and multiple connect lines. Normally, a box plot can be drawn by category, with a single connect line for one of the statistical values of
Recently a user posted a query on the SAS Communities page asking on how to create a histogram where the bins of the histogram are colored by the analysis variable using a three color ramp. Essentially, he wanted the bins to be colored from "Low" to "High" along the horizontal
Early last year I wrote an article on how to create the "Most Frequent Adverse Events Sorted by Relative Risk" graph using the SGPLOT procedure. The key issue here is that such a graph normally displays two plots side by side, a scatter plot of the proportion values by treatment
All axis customization features are always welcome. Especially since SGPLOT statements can often be used to create non standard graphs, having the ability to customize the axes is important. This article presents ways in which you can customize the discrete axes. By default, the x axis will try to display the
Often there is a need to display more than one response simultaneously for a bar chart, series plot or a vector plot. SAS 9.40M3 adds the options you need to get such results using two new options COLORRESPONSE and THICKRESPONSE where applicable. The Bar Chart on the right shows the frequency
The SGPLOT procedure provides great tools to create all kinds of graphs for all domains from business to clinical. However, every so often, we need to create visuals that are not exactly graphs, but more like flow or network diagrams, or something entirely unique. Some users may have tools to
Often when the data includes some extreme difference in measures or some outliers, the plot of the data points can get skewed due to the need to accommodate the extreme outliers. The bulk of the observations get squeezed into a smaller region of the plot. While this may be useful
A few weeks back I saw a couple of posts on the Communities page from users wanting to find ways to compute the area of an general polygon and also the center of the area. I felt such features likely existed somewhere in the SAS/GRAPH set of procedures, so I asked our resident
When we first released GTL and SG Procedures back with SAS 9.2, Box Plots and Bar Charts would always treat the category axis as discrete. We realized soon enough that we need to support box plots on scaled interval axes for many clinical applications, and this was added in SAS
We all want to customize our graphs just so, and have our personal preferences. Over the past few releases SG Procedures and GTL have added options to customize the look and feel of our graphs. In this article, I will describe new ways in which you can customize your legends. We will also see some
SAS 9.4 Maintenance release 3 was released on July 14. The ODS Graphics procedures include many important, useful and cool features in this release, some that have been requested by you for a while. In the next few articles, I will cover some of these features. Last time I covered
Big data is a popular topic, with multiple articles about the analysis of the same. Today, "Big Data" is measured in multiple of Tera Bytes, and SAS provides special software for analysis and visualization of Big Data - Visual Analytics. When data is very big, it may be meaningless, let alone inefficient, to plot
The SGPANEL procedure makes it easy to create graph panels that are classified by one or more classifiers. The "Panel" layout is the default and it places the classifier values in cell headers at the top of each cell. When using LAYOUT=Latice or RowLattice, the row headers are placed at
When ODS Graphics was first released with SAS 9.2 in 2008, a conscious effort was made to create graphs that were consistent and aesthetically pleasing out of the box. Features in the graph derive their visual attributes from the active Style. When Group classifications are in effect, the different classification
Bubble Plots provide additional ways to visualize your data. The plot supports display of multiple response characteristics of the data in one graph. Bubble plots were introduced with SAS 9.3 in GTL and SG Procedures. A bubble is drawn at each (x, y) point in the graph, and each bubble is