Sample 40257: Change symbols and colors on PROC SGSCATTER output
The sample code on the Full Code tab uses the DATACONTRASTCOLORS= and DATASYMBOLS= options in the PROC SGSCATTER statement to modify the colors and symbols for grouped data displayed on a scatter plot matrix.
This sample requires SAS® 9.4 (TS1M0) or later.
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 uses the DATACONTRASTCOLORS= and DATASYMBOLS= options in the PROC SGSCATTER statement to modify the colors and symbols for grouped data displayed on a scatter plot matrix.
This sample requires SAS 9.4 (TS1M0) or later.
ods graphics / reset width=600px height=400px attrpriority=none;
title1 "Blood Pressure Trends by Weight Status";
title2 "in heart disease patients under 50";
proc sgscatter data=sashelp.heart
datacontrastcolors=(purple orange blue)
datasymbols=(CircleFilled DiamondFilled SquareFilled);
where AgeCHDdiag lt 50 and AgeCHDdiag gt 0;
matrix diastolic systolic weight / group=weight_status;
run;
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 uses the DATACONTRASTCOLORS= and DATASYMBOLS= options in the PROC SGSCATTER statement to modify the colors and symbols for grouped data displayed on a scatter plot matrix. This sample requires SAS® 9.4 (TS1M0) or later.
Type: | Sample |
Topic: | SAS Reference ==> Procedures ==> SGSCATTER
|
Date Modified: | 2019-09-18 17:12:17 |
Date Created: | 2010-07-07 13:40:59 |
Operating System and Release Information
SAS System | Base SAS | Windows 7 Professional x64 | 9.4 TS1M0 | |
Windows 7 Enterprise x64 | 9.4 TS1M0 | |
Microsoft Windows Server 2012 Std | 9.4 TS1M0 | |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M0 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M0 | |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M0 | |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M0 | |
Microsoft Windows Server 2008 R2 | 9.4 TS1M0 | |
Microsoft Windows 10 | 9.4 TS1M0 | |
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M0 | |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M0 | |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M0 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M0 | |
Microsoft Windows 8 Pro x64 | 9.4 TS1M0 | |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M0 | |
Microsoft® Windows® for x64 | 9.4 TS1M0 | |
z/OS 64-bit | 9.4 TS1M0 | |
z/OS | 9.4 TS1M0 | |
64-bit Enabled AIX | 9.4 TS1M0 | |
64-bit Enabled Solaris | 9.4 TS1M0 | |
HP-UX IPF | 9.4 TS1M0 | |
Linux for x64 | 9.4 TS1M0 | |
Solaris for x64 | 9.4 TS1M0 | |