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