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.

Table of Contents

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.

Default30
SeeANGLE Variable

COLOR='color'

specifies the color of the arrow that is being drawn. Color can be any SAS/GRAPH color name. See COLOR Variable.

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 1, 2, 7, and 8.

SeeGROUP Variable
MIDPOINT Variable
SUBGROUP Variable

HSYS='coordinate-system'

specifies the coordinate system for the SIZE variable.

SeeHSYS Variable

HTML='link-string'

specifies the text that defines the drill-down link. The drill-down information is applied to the arrowhead.

SeeHTML Variable

LINE=length

specifies the length of the sides of the arrowhead as a percentage of the graphics area, regardless of the value for HSYS.

Sample Filled Arrowhead Sizes Used with the SIZE Variable
Sample Filled Arrowhead Sizes Used with the SIZE Variable
Default1
SeeLINE Variable

SIZE=line-thickness

specifies the thickness of the line that is being drawn. The depend on the value of the HSYS variable. For example, if HSYS='3', the SIZE variable is in units of percent of the . If HSYS='4', the SIZE variable is in units of of the area.

Sample Line Thicknesses Used with the SIZE Variable
Sample Line Thicknesses Used with the SIZE Variable
SeeSIZE Variable

STYLE='CLOSED' | 'FILLED' | 'OPEN'

specifies the arrowhead style.

Arrowhead Styles CLOSED, FILLED, and OPEN
Arrowhead Styles CLOSED, FILLED, and OPEN
DefaultOPEN
SeeSTYLE Variable: Arrows

WHEN='B' | 'A'

specifies when to draw the arrow in relation to other procedure output.

B

specifies that the arrow is drawn before the other procedure output is drawn.

A

specifies that the arrow is drawn after the other procedure output is drawn.

SeeWHEN Variable

X=horizontal-coordinate

Y=vertical-coordinate

Z=depth-coordinate

XC='character-type-horizontal-coordinate'

YC='character-type-vertical-coordinate'

specify the endpoint of a line drawn from (XLAST, YLAST) to (X,Y).

RestrictionThe Z= variable is used with the G3D procedure only.
SeeX Variable
Y Variable
Z Variable
XC Variable
YC Variable

XSYS='coordinate-system'

specifies the coordinate system for the X or XC variable. The XC variable can be used only with XSYS='2'.

SeeXSYS Variable

YSYS='coordinate-system'

specifies the coordinate system for the Y or YC variable. The YC variable can be used only with YSYS='2'.

SeeYSYS Variable

ZSYS='coordinate-system'

specifies the coordinate system for the Z variable.

RestrictionThe ZSYS= variable is used with the G3D procedure only.
SeeZSYS Variable
Last updated: January 17, 2025