19
Feb

Survival plot with a twist using SGPLOT procedure

Survival plots are automatically created by the LIFETEST procedure.  These graphs are most often customized to fit the needs of SAS users.  One way to create the customized survival plot is to save the generated data from the LIFETEST procedure, and then use the SGPLOT procedure to create your custom [...]

The post Survival plot with a twist using SGPLOT procedure appeared first on Graphically Speaking.

25
Oct

Advanced ODS Graphics: Curve labels and date axes

Curve labels in series plots can be positioned inside or outside the graph. Date variables can be specified as TYPE=LINEAR with a date format or more commonly as TYPE=DATE. Sometimes external curve labels might appear below or above the graph, particularly with TYPE=DATE axes. This blog shows you ways to move them to the right of the graph.

The post Advanced ODS Graphics: Curve labels and date axes appeared first on Graphically Speaking.

22
Jun

Advanced ODS Graphics: Vector plots and adjusting point labels

A vector plot draws a line from one point in a graph to another point. In this blog, I will show you how to create short vectors instead of vectors that emanate from the origin. I also show how to modify the positions of the vector labels.

The post Advanced ODS Graphics: Vector plots and adjusting point labels appeared first on Graphically Speaking.

23
Apr

Diagonal tick values

Fitting of long category values on a x-axis is usually a challenge.  With SAS 9.4, the SGPLOT procedure tries to fit the values by first splitting the values at white space to see if the values will fit in the space available.  This normally works for a small number of [...]

The post Diagonal tick values appeared first on Graphically Speaking.

7
Nov

Layers vs annotation

Last week a user asked about BY variable group processing for SGAnnotate with SGPLOT procedure.  The user provided a simple use case for the question (always a good idea) using the sashelp.class data set.  The graph included a display of reference lines for the mean value of height using annotation.  The […]

The post Layers vs annotation appeared first on Graphically Speaking.

1
Nov

Outside-the-box: Directed circle link graphs

One request came in for the previous article on Circle link graph, for the addition of arrow heads to indicate the direction of the flow.  Given that I am using a SERIES plot to render the links, it is relatively easy to add arrow heads to the links as the SERIES […]

The post Outside-the-box: Directed circle link graphs appeared first on Graphically Speaking.

4
Oct

Getting Started with SGPLOT - Part 1 - Scatter Plot

Last week I had the pleasure of presenting my paper "Graphs are Easy with SAS 9.4" at the Boston SAS Users Group meeting.  The turn out was large and over 75% of the audience appeared to be using SAS 9.4 back home.  This was good as my paper was focused on the cool new […]

The post Getting Started with SGPLOT - Part 1 - Scatter Plot appeared first on Graphically Speaking.

10
Jul

Polar Graph - Wind Rose

Last week I posted an article on displaying polar graph using SAS.  When the measured data (R, Theta) are in the polar coordinates as radius and angle, then this data can be easily transformed into the XY space using the simple transform shown below.     x=r*cos(theta * PI / 180);     y=r*sin(theta * PI […]

The post Polar Graph - Wind Rose appeared first on Graphically Speaking.

3
Jul

Polar Graph

There are many situations where it is beneficial to display the data using a polar graph.  Often your data may contain directional information.  Or, the data may be cyclic in nature, with information over time by weeks, or years.  The simple solution is to display the directional or time data […]

The post Polar Graph appeared first on Graphically Speaking.

12
Jun

Infographics: Coin Stack Bar Chart

Often one sees bar charts showing revenues or other related measures by a classifier using a visual of a stack of coins.  Such visuals are not strictly for the purposes of accurate magnitude comparisons, but more for providing an interesting visual to attract the attention of the reader.  In other words […]

The post Infographics: Coin Stack Bar Chart appeared first on Graphically Speaking.

Back to Top