%ARROW Annotate Macro

Draws an arrow from (X1, Y1) to (X2,Y2).

Updates:XLAST, YLAST
Variables written out:ANGLE, COLOR, FUNCTION, LINE, SIZE, STYLE, X, Y
Requirement:You must run the %ANNOMAC macro before using this or any of the other SAS/GRAPH annotate macros. See Making the Macros Available.

Table of Contents

Syntax

%ARROW (x1, y1, x2, y2, color, line, size, angle, CLOSED | FILLED | OPEN);

Parameters

x1, y1

specify coordinates for the start point of the arrow. Values can be numbers, numeric constants, or numeric variables.

SeeX Variable and Y Variable

x2, y2

specify coordinates for the end point of the arrow. Values can be coordinate numbers, numeric constants, or numeric variables.

SeeX Variable and Y Variable

color

specifies the color of the line using a character string without quotation marks. Use an asterisk (*) to specify the previous value of the color parameter.

SeeCOLOR Variable

line

specifies the length of the sides of the arrowhead as a percentage of the graph area. The value can be a number, a numeric constant, or a numeric variable.

SeeLINE Variable for valid line values.

size

specifies the width of the line. The value can be a number, a numeric constant, or a numeric variable.

SeeSIZE Variable for the ARROW function for valid size values.

angle

specifies the angle of the tip of the arrowhead. The value can be a number, a numeric constant, or a numeric variable.

SeeANGLE Variable for the ARROW function for valid angle values.

CLOSED | FILLED | OPEN

specifies the arrowhead style.

SeeSTYLE Variable: Arrows for more information about the values.

Details

The point from which the line is drawn is usually set with the MOVE macro.

Last updated: January 17, 2025