Sample 38107: Scatter plot matrix with histograms using PROC SGSCATTER
This sample generates a scatter plot matrix with histograms using PROC SGSCATTER. The DIAGONAL= option on the MATRIX statement adds graphs to the diagonal cells of the plot matrix in place of variable names. The HISTOGRAM and KERNEL graph types generate histograms with kernel density estimates.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample generates a scatter plot matrix with histograms using PROC SGSCATTER. The DIAGONAL= option on the MATRIX statement adds graphs to the diagonal cells of the plot matrix in place of the default variable names. The HISTOGRAM and KERNEL graph types generate histograms with kernel density estimates.
ods listing close;
ods html file='HistMatrix.html' path='.';
ods graphics / reset width=600px height=400px imagename='HistMatrix' imagefmt=gif;
title1 "Blood Pressure Trends by Weight Status";
title2 "in heart disease patients under 50";
proc sgscatter data=sashelp.heart;
where AgeCHDdiag lt 50 and AgeCHDdiag gt 0;
matrix diastolic systolic weight /
group=weight_status
diagonal=(histogram kernel);
run;
ods html close;
ods listing;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample generates a scatter plot matrix with histograms using PROC SGSCATTER.
Type: | Sample |
Topic: | SAS Reference ==> Procedures ==> SGSCATTER
|
Date Modified: | 2009-12-11 08:39:07 |
Date Created: | 2009-12-11 08:30:03 |
Operating System and Release Information
SAS System | SAS/GRAPH | Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 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 | |
z/OS | 9.2 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 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 | |