Dual Axis Graph with Zero Equalization

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 […]

Post a Comment

Boxplot with connect

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 […]

Post a Comment

Response Colors and Thickness

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 […]

Post a Comment

Something Different - SAS 9.40M3

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 […]

Post a Comment

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 […]

Post a Comment

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 […]

Post a Comment

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 […]

Post a Comment

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 […]

Post a Comment

Creating Spaghetti Plots Just Got Easy

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 […]

Post a Comment

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 […]

Post a Comment