The SGRENDER Procedure |
Procedure features: | DYNAMIC Statement |
Sample library member: | GSGREND1 |
This example uses dynamic variables to set values within the StatGraph template. By using dynamic variables to set the variable names, variable labels, and other parameters, the StatGraph template can be used with different data sets.
The first PROC SGRENDER statement generates a graph for the SASHELP.HEART data set:
proc sgrender data=sashelp.heart template=distribution; dynamic var="cholesterol" varlabel="Cholesterol (LDL)" normal="yes" title="Framingham Heart Study"; run; |
The second PROC SGRENDER statement generates multiple graph for the CARS data set by using BY grouping. The first graph is displayed here.
proc sort data=sashelp.cars out=cars; by origin; run; |
proc sgrender data=cars template=distribution; by origin; dynamic var="weight" varlabel="Weight in LBS" title="Distribution of Vehicle Weight"; run; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.