||You can use data set options with the DATA=
option. See Data Set Options for a list.
|To do this
||Use this option
|Specify the input data set
|Control the axes
||Include missing character variable values
||Exclude observations with missing values
||Uniformly scale axes across BY groups
|Control the appearance of the plot
||Specify the characters that construct the borders of the plot
||Suppress the legend at the top of the plot
||Specify the aspect ratio of the characters on the output device
|Control the size of the plot
||Specify the percentage of the available horizontal space for each plot
||Specify the percentage of the available vertical space for each plot
- specifies the input SAS data set.
||See Chapter 2, "Fundamental
Concepts for Using Base SAS Procedures."
- FORMCHAR <(position(s))>='formatting-character(s)'
- defines the characters to use for constructing the borders
of the plot.
- identifies the position of one or more characters in the
SAS formatting-character string. A space or a comma separates the positions.
is the same as specifying all twenty possible SAS formatting characters, in
||PROC PLOT uses formatting characters 1,
2, 3, 5, 7, 9, and 11. The following table shows the formatting characters
that PROC PLOT uses.
||Used to draw
|3 5 9 1 1
||intersection of vertical and horizontal
- lists the characters to use for the specified positions.
PROC PLOT assigns characters in formatting-character(s) to position(s), in the order that they are listed. For instance, the following
option assigns the asterisk (*) to the third formatting character, the pound
sign (#) to the seventh character, and does not alter the remaining characters:
||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.
||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:
||Specifying all blanks for formatting-character(s) produces plots with no borders, for example
- specifies one or more percentages of the available horizontal
space to use for each plot. HPERCENT= enables you to put multiple plots on
one page. PROC PLOT tries to fit as many plots as possible on a page. After
using each of the percent(s), PROC PLOT cycles back to the beginning
of the list. A zero in the list forces PROC PLOT to go to a new page even
though it could fit the next plot on the same page.
- prints three plots per page horizontally, each plot is one-third
of a page wide.
- hpercent=50 25 25
- prints three plots per page, the first is twice as wide
as the other two.
- hpercent=33 0
- produces plots that are one-third of a page wide, each plot
is on a separate page.
- produces plots three pages wide.
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.
- includes missing character variable values in the construction
of the axes. It has no effect on numeric variables.
||overrides the NOMISS option for
- suppresses the legend at the top of each plot. The legend
lists the names of the variables being plotted and the plotting symbols used
in the plot.
- excludes observations for which either variable is missing
from the calculation of the axes. Normally, PROC PLOT draws an axis based
on all the values of the variable being plotted, including points for which
the other variable is missing.
||The HAXIS= option overrides the
effect of NOMISS on the horizontal axis. The VAXIS= option overrides the effect
on the vertical axis.
||NOMISS is overridden by MISSING
for character variables.
||Excluding Observations That Have Missing Values
- uniformly scales axes across BY groups. Uniform scaling
allows you to directly compare the plots for different values of the BY variables.
||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.
- specifies one or more percentages of the available vertical
space to use for each plot. If you use a percentage greater than 100, PROC
PLOT prints sections of the plot on successive pages.
- specifies the aspect ratio (vertical to horizontal) of the
characters on the output device. aspect-ratio is a positive real
number. If you use the VTOH= option, PROC PLOT spaces tick marks so that the
distance between horizontal tick marks is nearly equal to the distance between
vertical tick marks. For example, if characters are twice as high as wide,
||VTOH= has no effect if you use the
HSPACE= and the VSPACE= options in the PLOT statement.
||HAXIS= for a way to equate
axes so that the given distance represents the same data range on both
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.