Display only plots using PROC UNIVARIATE


When ODS Graphics is enabled, the PLOTS option in PROC UNIVARIATE produces a horizontal histogram, a box plot, and a normal probability plot. When ODS Graphics is disabled, the PLOTS option produces (in low-resolution) either a horizontal histogram or stem-and-leaf plot, a box plot, and a normal probability plot. You can the specify the following ODS statement to display only the plots and suppress the numerical output:

ods select plots;
proc univariate plots;
   var y;
run;

To display only the normal probability plot, you can use the PROBPLOT statement instead of the PLOTS option. Again, an ODS statement can suppress all results except for the desired plot:

ods select probplot;
proc univariate;
   var y;
   probplot y / normal(mu=est sigma=est);
run;

Similarly, you can specify a QQPLOT or PPLOT statements and a corresponding ODS SELECT statement to display a quantile-quantile plot or a probability-probability plot without any additional output.

To display only a boxplot, use PROC BOXPLOT, the BOXCHART statement in PROC SHEWHART in SAS/QC® software, or use the HBOX or VBOX statement in PROC SGPLOT.

The stem-and-leaf plot cannot be separately displayed.