![]() Chapter Contents |
![]() Previous |
![]() Next |
| The GPLOT Procedure |
| Requirements: | At least one plot request is required. |
| Global statements: | AXIS, FOOTNOTE, LEGEND, PATTERN, SYMBOL, TITLE |
| Supports: | Drill-down functionality |
You can use statement options to manipulate the axes, modify the appearance of your graph, and describe catalog entries. You can use SYMBOL definitions to modify plot symbols for the data points, join data points, draw regression lines, plot confidence limits, or specify other types of interpolations. For more information on the SYMBOL statement, see About SYMBOL Definitions.
| PLOT plot-request(s) </option(s)>; |
option(s) can be one or more options from any or all of the following categories:
| Required Arguments |
Note:
The nth generated
SYMBOL definition is not necessarily the same as the nth SYMBOL
statement. Plot requests of the form y-variable*x-variable=n assign the SYMBOL definition that is designated by n to the plot that is produced by
y-variable*x-variable. See About Plot Requests that Assign a SYMBOL Definition
for more information. ![[cautend]](../common/images/cautend.gif)
plot (temp rain)*month;
This plot request produces two plots, one of TEMP and MONTH and one of RAIN and MONTH.
plot sales*weekday=dept;
For an example of a plot that specifies a third-variable, see Plotting Three Variables.
plot temp*month rain*month=2;
| Options |
| See also: | The Annotate Data Set |
| INTERPOL=JOIN | |
| INTERPOL=STEP | |
| INTERPOL=Rseries | |
| INTERPOL=SPLINE | SM | L |
See SYMBOL Statement for details on interpolation methods.
By default, the AREAS= option fills areas by rotating a solid pattern through the colors list, starting with the first color in the list. If it needs more patterns, it rotates hatch patterns, beginning with the M2N0 pattern (see PATTERN Statement for more information on map/plot patterns). However, if the V6COMP graphics option is in effect, or if color is limited to a single color with the CPATTERN= or COLORS= graphic options, the solid pattern is skipped and the first default pattern is M2N0. If the COLORS= graphic option specifies a single color, use as many SYMBOL statements as you have areas to fill in the plot because the INTERPOL= setting does not automatically apply to multiple symbol definitions.
Note:
If your device's default colors list is in effect and
the first color in the list is black, color rotation begins with the second
color in the list (no solid black patterns), unless the V6COMP graphics option
is in effect. See How Default Patterns and Outlines Are Generated
for more information. ![[cautend]](../common/images/cautend.gif)
If you specify PATTERN statements, AREAS= uses the lowest numbered PATTERN statement first. If it runs out of patterns, it uses the default behavior for map and plot patterns (see PATTERN Statement for details).
AREAS= works only if all plot lines are generated by the same PLOT or PLOT2 statement.
| Featured in: | Filling Areas in an Overlay Plot |
If you use the CAXIS= option, it may be overridden by
| Featured in: | Connecting Plot Data Points |
If you omit the CTEXT= option, a color specification is searched for in this order:
| Featured in: | Connecting Plot Data Points |
| Featured in: | Connecting Plot Data Points |
For the frame color, a specification is searched for in this order:
To fill the axis area with a background color, use the CFRAME= option.
The way you specify value-list depends on the type of variable:
| n <...n> | |
| n TO n <BY increment> | |
| n <...n> TO n <BY increment > <n <...n> > |
If a numeric variable has an associated format, the specified values must be the unformatted values.
| 'SAS-value'i < ...'SAS-value'i> | |
| 'SAS-value'i TO 'SAS-value' i<BY interval> |
| 'value-1' < ...'value-n'> |
If a character variable has an associated format, the specified values must be the formatted values.
For a complete description of value-list, see the ORDER= option in the AXIS statement.
Note:
If data
values fall outside of the range that is specified by the HAXIS= option, then
by default the outlying data values are not used in interpolation calculations.
See About the Input Data Set
for more information on values out of range. ![[cautend]](../common/images/cautend.gif)
| Featured in: | Plotting Two Variables, Connecting Plot Data Points, and Plotting with Different Scales of Values |
| Featured in: | Plotting Two Variables, Connecting Plot Data Points, and Plotting with Different Scales of Values |
| See also: | CHREF= for a description of color specifications for reference lines |
| See also: | LEGEND Statement |
| Featured in: | Generating an Overlay Plot |
| Featured in: | Connecting Plot Data Points |
| Featured in: | Generating an Overlay Plot and Filling Areas in an Overlay Plot |
| Featured in: | Plotting Two Variables |
| See also: | About the Input Data Set for more information about values |
| Featured in: | Plotting Two Variables and Connecting Plot Data Points |
| Featured in: | Connecting Plot Data Points |
| See also: | CVREF= for a description of color specifications for reference lines |
| Featured in: | Connecting Plot Data Points |
| Plot Requests with Multiple Variables |
Plot requests with multiple variables produce a separate plot for every Y*X pair, unless you specify OVERLAY. For example, this statement produces four plots like those in Graphs Generated by Multiple Plot Requests (the actual plots are produced on separate pages):
plot (y b)*(x a);
Graphs Generated by Multiple Plot Requests
| About SYMBOL Definitions |
plot y*x b*a s*r;
See SYMBOL Statement for a complete discussion of the features of the SYMBOL statement.
| About Plot Requests that Assign a SYMBOL Definition |
With plot requests of this type it is important to remember that a single SYMBOL statement can generate multiple SYMBOL definitions, so that the SYMBOL definition that is designated by n may not be the same as the SYMBOL statement of the same number. That is, the third SYMBOL definition is not necessarily the same as the SYMBOL3 statement. See SYMBOL Statement for more information.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.