There are four basic types
of plots that you can create with the SGPLOT procedure.
scatter, series, step,
band, bubble, high-low, needle, and vector plots
loess, regression,
and penalized B-spline curves, and ellipses
box plots, histograms,
and normal and kernel density estimates
dot plots, bar charts,
line plots, and waterfall plots (preproduction)
Not all of the plot
types can be used together in the same PROC SGPLOT step. The following
table shows which of the plot types can be used together:
Plot Type Compatibility
Note: Box plots cannot be combined
with any other plot types. Box plots can be overlaid with other box
plots. However, overlaid box plots must have the same category variables.
If you submit a PROC
SGPLOT step that combines two incompatible plot statements, then an
error appears in the log.
The SGPLOT procedure
draws the plots in your graph in the same order that you specify the
plot statements. Because of this, it is important to consider the
order of your plot statements so that your plots do not obscure one
another. For example, if you specify a BAND statement after a SCATTER
statement, then the band plot might obscure the markers in your scatter
plot. You can also avoid obscuring your data by using the TRANSPARENCY=
option to make your plots partially transparent.