Sample 33171: Subgroup bars with PROC GBARLINE
This sample illustrates the SUBGROUP and LEGEND options that are available with PROC GBARLINE beginning with SAS 9.2.
axis1 label=('Frequency of Age');
axis2 label=('Sum of Height');
symbol1 i=join c=darkblue v=dot;
legend1 label=('Gender') value=('Female' 'Male') frame;
pattern1 v=solid c=pink;
pattern2 v=solid c=lightblue;
title h=1.5 'Using the SUBGROUP option';
proc gbarline data=sashelp.class;
bar age / subgroup=sex legend=legend1
discrete raxis=axis1;
plot / sumvar= height raxis=axis2;
run;
quit;
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GBARLINE
|
| Date Modified: | 2008-09-10 15:24:26 |
| Date Created: | 2008-09-05 10:53:19 |
Operating System and Release Information
| SAS System | SAS/GRAPH | z/OS | 9.2 TS1M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
| Microsoft® Windows® for x64 | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
| Microsoft Windows XP Professional | 9.2 TS1M0 | |
| Windows Vista | 9.2 TS1M0 | |
| 64-bit Enabled AIX | 9.2 TS1M0 | |
| 64-bit Enabled HP-UX | 9.2 TS1M0 | |
| 64-bit Enabled Solaris | 9.2 TS1M0 | |
| HP-UX IPF | 9.2 TS1M0 | |
| Linux | 9.2 TS1M0 | |
| Linux for x64 | 9.2 TS1M0 | |
| OpenVMS on HP Integrity | 9.2 TS1M0 | |
| Solaris for x64 | 9.2 TS1M0 | |