This article is motivated by a recent question on the SAS Communities board. This user wants to create a series or spline plot where the attributes of the line (color, thickness) can be changed based on another variable. In this case it may be a binary variable with "0" and
Tag: Series
A dual response axis chart is useful when the data type for the multiple measures are not compatible. For example, when overlaying measures like "This Year" sales with "Last Year" sales, the format and magnitudes of the two measures (or values for two groups) may be compatible, and it is
This is the 4th installment of the Getting Started series. The audience is the user who is new to the SG Procedures. Experienced users may also find some useful nuggets of information here. Series plots are frequently used to visualize a numeric response on the y-axis by another numeric variable on
Today's post illustrates the REG, PBSPLINE, LOESS, SERIES, and SPLINE statements in PROC SGPLOT. The GROUP= and BREAK options in the SERIES statement are also discussed.
A Spider Plot is another way of presenting the Change from Baseline for tumors for each subject in a study by week. The plot can be classified by response and stage. Another way of displaying Tumor Response data was discussed earlier in the article on Swimmer Plot. This article is prompted
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
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
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
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
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
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
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
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
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
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
Browsing graphs on the web, this graph caught my eye: The Arctic Sea Ice Volume Graph. My interest is not so much in the debate on Climate Change or Global Warming. To me, this graph has some interesting features that can help show the benefits of plot layering to
I decided this year to get serious about my running. I started recording my distance for every run. I made a SAS data set and generated simple reports. After a few weeks, I set a goal of averaging one marathon a week (3.8 miles per day, 26.2 miles per week,
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..."
You created a graph of Response over Time by Severity where Severity has three levels, "Severe", "Moderate' and "Mild". How do you ensure that "Severe" is always red in your graph, regardless of the data order? Normally, when creating any graph with a GROUP role, the distinct group values are assigned the style
SG procedures and GTL use a collision avoidance algorithm to position data labels for a scatter or series plot. This is enabled by default. The label is preferably placed at the top right corner of the marker. The label is moved to one of the eight locations around the marker to
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
The topic of cluster groups comes up often. By cluster group I am referring to the feature in bar charts where the group values are displayed side by side. With SAS 9.3, SG Procedures support stack or cluster grouping for Bar Charts and overlay or cluster grouping for all other
Charlie Huang recently posted an article on a new way to draw maps using SGPlot procedure. The basic idea is simple, just use the SCATTER statement to plot the (x, y) points from the data sets in the MAPS library. The GROUP option can be used to color the markers for each