DRAW Function
Draws a line in the graphics output from the (XLAST,
YLAST) coordinates to the (X, Y) coordinates specified in the function.
Syntax
Associated Variables
- COLOR='color'
-
specifies the color
of the line that is being drawn. Color can be any SAS/GRAPH color name.
- GROUP=group-value
- MIDPOINT=midpoint-value
- SUBGROUP=subgroup-value
-
specify coordinates
for HBAR and VBAR charts from the GCHART procedure. Use these variables
only with the data coordinate systems 1, 2, 7, and 8.
- HSYS='coordinate-system'
-
specifies the coordinate
system for the SIZE variable. See
HSYS Variable for an explanation of
coordinate-system.
- LINE=1...46
-
specifies the line
type of the line that is being drawn. See
Specifying Line Types for an illustration of the line types.
- SIZE=line-thickness
-
specifies the thickness
of the line that is being drawn. The units depend on the value of
the HSYS variable. For example, if HSYS='3', the SIZE variable is
in units of percent of the graphics output area. If HSYS='4', the
SIZE variable is in units of cells of the graphics output area.
As the thickness of
the line increases, it might be impossible to center around a given
coordinate. For example, if you specify a thickness of value 2 and
HSYS='4', the first line is drawn at the (X, Y) coordinates. The second
is drawn slightly above the first. The exact amount varies by device,
but it is always one pixel in width. A thickness of value 3 produces
one line above, one line at, and one line below the (X, Y) coordinate
position. See
Sample Line Thicknesses Used with the SIZE Variable for examples
of line thicknesses.
- WHEN='B' | 'A'
-
specifies when to draw
the line in relation to other procedure output. See
WHEN Variable.
- X=horizontal-coordinate
- Y=vertical-coordinate
- Z=depth-coordinate (PROC G3D only)
- XC='character-type-horizontal-coordinate'
- YC='character-type-vertical-coordinate'
-
specify the endpoint
of a line drawn from (XLAST, YLAST) to (X,Y).
- XSYS='coordinate-system'
-
specifies the coordinate
system for the X or XC variable. The XC variable can be used only
with XSYS='2'. See
XSYS Variable for an explanation
of
coordinate-system.
- YSYS='coordinate-system'
-
specifies the coordinate
system for the Y or YC variable. The YC variable can be used only
with YSYS='2'. See
YSYS Variable for an explanation
of
coordinate-system.
- ZSYS='coordinate-system'
-
specifies the coordinate
system for the Z variable (PROC G3D only). See
ZSYS Variable for an explanation of
coordinate-system.