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
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 |
|---|---|
| See | ANGLE 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.
| See | GROUP Variable |
|---|---|
| MIDPOINT Variable | |
| SUBGROUP Variable |
HSYS='coordinate-system'
specifies the coordinate system for the SIZE variable.
| See | HSYS Variable |
|---|
HTML='link-string'
specifies the text that defines the drill-down link. The drill-down information is applied to the arrowhead.
| See | HTML 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

| Default | 1 |
|---|---|
| See | LINE 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
| See | SIZE Variable |
|---|
STYLE='CLOSED' | 'FILLED' | 'OPEN'
specifies the arrowhead style.
Arrowhead Styles CLOSED, FILLED, and OPEN

| Default | OPEN |
|---|---|
| See | STYLE 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.
| See | WHEN 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).
| Restriction | The Z= variable is used with the G3D procedure only. |
|---|---|
| See | X 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'.
| See | XSYS Variable |
|---|
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 |
|---|
ZSYS='coordinate-system'
specifies the coordinate system for the Z variable.
| Restriction | The ZSYS= variable is used with the G3D procedure only. |
|---|---|
| See | ZSYS Variable |