Introduction to SAS/GRAPH Statistical Graphics Procedures |
The SGPLOT procedure is optimized to display overlaid plots on a single set of axes. The procedure syntax supports the following features:
Basic plots: scatter plots, series plots, band plots, needle plots, and vector plots.
Fit and confidence plots: loess curves, regression curves, penalized B-spline curves, and ellipses.
Distribution plots: histograms, box plots, and density curves.
Categorization plots: bar charts, dot plots, and bar-line charts.
Insets, legends, and reference lines.
All of the plot statements that are used in the SGPLOT procedure share a single set of axes. You can customize these axes by using axis statements such as XAXIS and YAXIS.
The following images show examples of types of graphs that you can create with the SGPLOT procedure:
This is an example of two series plots that are overlaid in a single graph. Each plot is assigned to a different vertical axis. Data labels and curve labels have been added for direct reference.
This is an example of a graph that uses a histogram, a kernel density curve, and a normal density curve.
For more information about the SGPLOT procedure and the procedure syntax, see The SGPLOT Procedure.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.