ARROW Function

Draws an arrow in the graphics output from the (XLAST, YLAST) coordinates to the (X,Y) coordinates specified in the function.
Updates: XLAST, YLAST
Tip: For best results, specify a graphics device driver in the GOPTIONS statement.

Syntax

FUNCTION='ARROW';

Associated Variables

ANGLE= angle-value
specifies the angle for the tip of the arrowhead. You can specify any number for the angle. If the angle that you specify is not between 0 and 180, the absolute value of mod(angle-value,180) is used. For example, the values -45, 45, and 225 all produce the same result.
Default:30
COLOR='color'
specifies the color of the arrow 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=length
specifies the length of the sides of the arrowhead. The units for LINE are always a percentage of the graphics area, regardless of the value for HSYS.
Default:1
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.
Sample Line Thicknesses Used with the SIZE Variable
Image of sample line thicknesses used with the SIZE variable
STYLE= 'CLOSED' | 'FILLED' | 'OPEN'
specifies the type of arrowhead. Specify one of the following values:
CLOSED
the arrowhead is shaped like an empty triangle.
FILLED
the arrowhead is shaped like a filled triangle.
OPEN
the arrowhead is shaped like a V.
Default:OPEN
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.