Tag: SGPLOT procedure

Data Visualization
Dan Heath 0
The Power of Stacking

Amazing things can be created when you start with small pieces and stack them together. Just ask Bryan Berg. He is the current world record holder for the tallest house of cards. This same principle can be applied to the SGPLOT and SGPANEL procedures. You can take the individual plot

Data Visualization | Learn SAS | Programming Tips
Sanjay Matange 4
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

Data Visualization
Sanjay Matange 4
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 well for a small number

Data Visualization
Sanjay Matange 1
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

Data Visualization
Sanjay Matange 4
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

1 2 3 7