Sample 35164: Grouped Horizontal Box Plot
This sample uses the SGPANEL procedure to create grouped horizontal box plots.
This sample uses the SGPANEL procedure to create grouped horizontal box plots.
proc format;
value age
28-34 = '< 35'
35-44 = '36-45'
45-54 = '46-55'
55-65 = '> 55';
run;
proc template;
define style myBlock;
parent=styles.BlockPrint;
style colors from colors
"Colors for doc" /
'docbg' = cxaaaf9f;
end;
run;
ods listing close;
ods graphics / reset width=600px height=400px imagename='Cholesterol' imagefmt=gif;
ods html file='cholesterol.html' path='.' style=myblock;
title 'Cholesterol by Sex and Age Group';
proc sgpanel data=sashelp.heart;
format ageatstart age.;
panelby sex / columns=1 layout=rowlattice novarname;
hbox cholesterol / category=ageatstart boxwidth=0.7;
run;
ods html close;
ods listing;
This sample uses the SGPANEL procedure to create grouped horizontal box plots.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> SGPANEL
|
| Date Modified: | 2009-03-20 14:39:40 |
| Date Created: | 2009-03-17 14:26:06 |
Operating System and Release Information
| SAS System | SAS/GRAPH | z/OS | 9.2 TS2M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |
| Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |
| Microsoft® Windows® for x64 | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | |
| Microsoft Windows XP Professional | 9.2 TS2M0 | |
| Windows Vista | 9.2 TS2M0 | |
| 64-bit Enabled AIX | 9.2 TS2M0 | |
| 64-bit Enabled HP-UX | 9.2 TS2M0 | |
| 64-bit Enabled Solaris | 9.2 TS2M0 | |
| HP-UX IPF | 9.2 TS2M0 | |
| Linux | 9.2 TS2M0 | |
| Linux for x64 | 9.2 TS2M0 | |
| OpenVMS on HP Integrity | 9.2 TS2M0 | |
| Solaris for x64 | 9.2 TS2M0 | |