Contents
About
Title Page
What's New in SAS ODS Graphics Procedures 9.3
Introduction
Introduction to SAS ODS Graphics Procedures
About the SAS ODS Graphics Procedures
Components of a Graph
Creating Single-Cell Graphs
Creating Multi-Cell Graphs
Creating Paneled Scatter Plots
Rendering Graphs from GTL Templates or ODS Graphics Editor Files
Producing Graphs That Were Created with ODS Graphics Designer
About ODS Destinations and Styles
About the SAS Sample Library
References
Elements of a Program
A Typical Program
The PROC Step
SAS Statements
ODS Statements
ODS GRAPHICS Statement Options
Using an Annotation Data Set
Using an Attribute Map Data Set
Overview of Plots and Charts
Basic Plots and Charts
Fit and Confidence Plots
Distribution Plots
Categorization Plots and Charts
SAS Statements That Are Used with ODS Graphics Procedures
Overview of SAS Statements That Are Used with ODS Graphics Procedures
BY Statement
FOOTNOTE Statement
FORMAT Statement
LABEL Statement
ODS GRAPHICS Statement
TITLE and FOOTNOTE Statements
WHERE Statement
SAS ODS Graphics Procedures
SGDESIGN Procedure
Syntax: SGDESIGN Procedure
PROC SGDESIGN
DYNAMIC
Overview: SGDESIGN Procedure
Concepts: SGDESIGN Procedure
Examples: SGDESIGN Procedure
Example 1: Creating a Graph and Subsetting the Data
Example 2: Creating a Graph That Uses a Different Data Set
Example 3: Using the DYNAMIC Statement to Specify a Column and a Character String
SGPANEL Procedure
Syntax: SGPANEL Procedure
PROC SGPANEL
PANELBY
BAND
BUBBLE
DENSITY
DOT
HBAR
HBARPARM
HBOX
HIGHLOW
HISTOGRAM
HLINE
KEYLEGEND
LINEPARM
LOESS
NEEDLE
PBSPLINE
REFLINE
REG
SCATTER
SERIES
STEP
VBAR
VBARPARM
VBOX
VECTOR
VLINE
COLAXIS
ROWAXIS
Overview: SGPANEL Procedure
Concepts: SGPANEL Procedure
Examples: SGPANEL Procedure
Example 1: Creating a Panel of Graph Cells with Histograms and Density Plots
Example 2: Creating a Panel of Regression Curves
Example 3: Creating a Panel of Bar Charts
Example 4: Creating a Panel of Line Charts
SGPLOT Procedure
Syntax: SGPLOT Procedure
PROC SGPLOT
BAND
BUBBLE
DENSITY
DOT
ELLIPSE
HBAR
HBARPARM
HBOX
HIGHLOW
HISTOGRAM
HLINE
INSET
KEYLEGEND
LINEPARM
LOESS
NEEDLE
PBSPLINE
REFLINE
REG
SCATTER
SERIES
STEP
VBAR
VBARPARM
VBOX
VECTOR
VLINE
WATERFALL (Preproduction)
XAXIS
X2AXIS
YAXIS
Y2AXIS
Overview: SGPLOT Procedure
Concepts: SGPLOT Procedure
Examples: SGPLOT Procedure
Example 1: Grouping a Scatter Plot
Example 2: Clustering a Grouped Scatter Plot
Example 3: Plotting Three Series
Example 4: Adding Prediction and Confidence Bands to a Regression Plot
Example 5: Adding a Prediction Ellipse to a Scatter Plot
Example 6: Creating Lines and Bands from Pre-Computed Data
Example 7: Adding Statistical Limits to a Dot Plot
Example 8: Combining Histograms with Density Plots
Example 9: Creating a Horizontal Box Plot
Example 10: Creating a Bar-Line Chart
Example 11: Creating a High-Low Chart
SGRENDER Procedure
Syntax: SGRENDER Procedure
PROC SGRENDER
DYNAMIC
Overview: SGRENDER Procedure
Examples: SGRENDER Procedure
Example 1: Generating a Graph from a Simple GTL Template
Example 2: Defining Dynamic Variables
SGSCATTER Procedure
Syntax: SGSCATTER Procedure
PROC SGSCATTER
COMPARE
MATRIX
PLOT
Overview: SGSCATTER Procedure
Concepts: SGSCATTER Procedure
Examples: SGSCATTER Procedure
Example 1: Creating a Scatter Plot Matrix
Example 2: Creating a Graph with Multiple Independent Scatter Plots and Spline Curves
Example 3: Creating a Simple Comparative Panel
Example 4: Creating a Comparative Panel with Regression Fits and Confidence Ellipses
SG Annotation
Annotating ODS Graphics
Overview of SG Annotation
SG Annotation Data Sets
Modifying an SG Procedure to Use the SG Annotation Data Set
Controlling the Drawing Space
SG Annotation Function Dictionary
ARROW Function
IMAGE Function
LINE Function
OVAL Function
POLYCONT Function
POLYGON Function
POLYLINE Function
RECTANGLE Function
TEXT Function
TEXTCONT Function
Examples
Example 1: Create an Arrow in a Paneled Graph
Example 2: Create a Tabular Text Annotation
SG Attribute Maps
Using SG Attribute Maps to Control Visual Attributes
Overview of SG Attribute Maps
SG Attribute Map Data Sets
Modify the Procedure to Use the SG Attribute Map Data Set
Example: Create a Plot That Uses a Single SG Attribute Map
Example: Combine Multiple SG Attribute Maps in a Graph
Example: Create a Panel That Uses an Attribute Map
Customizing ODS Graphics
Controlling the Appearance of Your Graphs
Overview
Understanding Styles
Specifying Styles
Using Procedure Options to Control Graph Appearance
Output for Grouped versus Non-Grouped Data
Modifying Style Templates
Using Fill Patterns to Distinguish Grouped Bar Charts
Style Elements for Use with ODS Graphics
Managing Your Graphics with ODS
Introduction
Specifying a Destination
Using the ODS GRAPHICS Statement
Appendix
Units of Measurement
Marker Symbols
Line Patterns
Overview of ODS Graphics Software
Comparisons with the SAS/GRAPH Procedures
SAS/GRAPH Output versus ODS Graphics
Differences between the ODS Graphics Procedures and SAS/GRAPH Procedures
Recommended Reading
Glossary
Product
Release
Base SAS
9.3_M2
SAS/STAT
12.1
Type
Usage and Reference
Copyright Date
August 2012
Last Updated
13Jun2014