
The following code creates a panel of box
plots in a lattice layout:
title1 "Distribution of Cholesterol Levels";
proc sgpanel data=sashelp.heart;
panelby weight_status sex / layout=lattice
novarname;
hbox cholesterol;
run;
title1;
The following code creates a panel of cells
with a histogram and a normal density curve:
Title1 "Weight Distribution in the Heart Study";
proc sgpanel data=sashelp.heart noautolegend;
panelby sex / novarname;
histogram weight;
density weight;
run;
Title1;
Concepts: SGPANEL Procedure
Panel Creation
The SGPANEL procedure has a required PANELBY statement that is used to define the
classifier variables for the panel. This statement ...