Chapter Contents |
Previous |
Next |
The PLOT Procedure |
Reminder: | You can use data set options with the DATA= option. See Data Set Options for a list. |
PROC PLOT <option(s)>; |
To do this | Use this option | |
---|---|---|
Specify the input data set | DATA= | |
Control the axes | ||
Include missing character variable values | MISSING | |
Exclude observations with missing values | NOMISS | |
Uniformly scale axes across BY groups | UNIFORM | |
Control the appearance of the plot | ||
Specify the characters that construct the borders of the plot | FORMCHAR= | |
Suppress the legend at the top of the plot | NOLEGEND | |
Specify the aspect ratio of the characters on the output device | VTOH= | |
Control the size of the plot | ||
Specify the percentage of the available horizontal space for each plot | HPERCENT= | |
Specify the percentage of the available vertical space for each plot | VPERCENT= |
Options |
Main discussion: | See Chapter 2, "Fundamental Concepts for Using Base SAS Procedures." |
Default: | Omitting (position(s)), is the same as specifying all twenty possible SAS formatting characters, in order. | ||||||||||||||||||||
Range: | PROC PLOT uses formatting characters 1,
2, 3, 5, 7, 9, and 11. The following table shows the formatting characters
that PROC PLOT uses.
|
formchar(3,7)='*#'
Interaction: | The SAS system option FORMCHAR= specifies the default formatting characters. The system option defines the entire string of formatting characters. The FORMCHAR= option in a procedure can redefine selected characters. |
Tip: | You can use any character in formatting-characters, including hexadecimal characters. If you use hexadecimal characters,
you must put an
x after the closing quote. For instance the following
option assigns the hexadecimal character 2D to the third formatting character,
the hexadecimal character 7C to the seventh character, and does not alter
the remaining characters:
formchar(3,7)='2D7C'x |
Tip: | Specifying all blanks for formatting-character(s) produces plots with no borders, for example
formchar (1,2,7)='' |
At the beginning of every BY group and after each RUN statement, PROC PLOT returns to the beginning of the percent(s) and starts printing a new page.
Alias: | HPCT= |
Default: | 100 |
Featured in: | Producing Multiple Plots per Page |
Interaction: | overrides the NOMISS option for character variables |
Interaction: | The HAXIS= option overrides the effect of NOMISS on the horizontal axis. The VAXIS= option overrides the effect on the vertical axis. |
Interaction: | NOMISS is overridden by MISSING for character variables. |
Featured in: | Excluding Observations That Have Missing Values |
Restriction: | You cannot use PROC PLOT with the UNIFORM option with an engine that supports concurrent access if another user is updating the data set at the same time. |
Alias: | VPCT= |
Default: | 100 |
Featured in: | Producing Multiple Plots per Page |
See also: | HPERCENT= |
Minimum: | 0 |
Interaction: | VTOH= has no effect if you use the HSPACE= and the VSPACE= options in the PLOT statement. |
See also: | HAXIS= for a way to equate axes so that the given distance represents the same data range on both axes. |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.