%LINE Annotate Macro

Draws a line between two sets of coordinates.

Updates:XLAST, YLAST
Variables written out:COLOR, FUNCTION, LINE, SIZE, 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

%LINE (x1, y1, x2, y2, color, line, size);

Parameters

x1, y1

specify the coordinates of the start of the line. Values can be numbers, numeric constants, or numeric variables.

SeeX Variable and Y Variable

x2, y2

specify the coordinates of the end of the line. Values can be 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 line type, which can be continuous or segmented. The value can be a number, a numeric constant, or a numeric variable.

SeeLINE Variable for the DRAW function 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 DRAW function for valid size values.
Last updated: January 17, 2025