Sample 33173: Subgroups and multiple lines with PROC GBARLINE
Beginning with SAS 9.2, you can create subgroups and mulitple lines with PROC GBARLINE.
symbol1 i=join color=red v=dot;
symbol2 i=join c=green v=star;
pattern1 v=solid c=pink;
pattern2 v=solid c=lightblue;
axis1 label=('Frequency of Age');
axis2 label=('Height and Weight');
/* Legend for the BAR statement */
legend1 label=none value=('Female' 'Male') frame;
/* Legend for the PLOT statements */
legend2 label=none;
title h=1.5 'Subgroups and Multiple Plot Lines';
proc gbarline data=sashelp.class;
bar age / subgroup=sex legend=legend1
discrete raxis=axis1;
plot / sumvar= height raxis=axis2;
plot / legend=legend2 sumvar=weight;
run;
quit;
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GBARLINE
|
| Date Modified: | 2008-09-10 15:27:30 |
| Date Created: | 2008-09-05 11:38:17 |
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 | |