Plot
statements are used within the procedure to identify the type of plot
that you want the procedure to produce. The SGPLOT and SGPANEL procedures
require at least one plot statement.
Multiple
plot statements can be used, as shown in the example. A SERIES statement
is used to create a series plot that shows power
generation from coal. A second SERIES statement creates a series plot
that shows power generation from natural gas.
Options are
available for specifying colors, marker symbols, and other attributes
of plot features. In the example, both series plots specify that data
labels are displayed. The second SERIES statement uses the Y2AXIS
option to plot natural gas power output along the Y axis on the right
side of the plot
.
The SGPLOT procedure
also enables you to add a text inset to a plot using the INSET statement
(not shown in the example). The INSET statement adds a text box within
the axes of the plot. Options are available for specifying the visual
attributes of the text box and the text.