POLY Function

POLY Function

Specifies the beginning point of a polygon. Associated variables can define the fill pattern and color, as well as the line type that outlines the polygon.

Syntax

 FUNCTION='POLY';

COLOR='color'
specifies the color of the interior of the polygon, if a pattern is specified for the STYLE variable. The outline color is specified with the POLYCONT function. 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 data coordinate systems 1, 2, 7, and 8.

LINE=1...46
specifies the line type that outlines the polygon. See Specifying Line Types for an illustration of the line types.

SIZE=thickness
specifies a line thickness for the polygon

STYLE='fill-pattern'
specifies the value of the pattern that fills the polygon. Fill-pattern can be the following map patterns:
MSOLID
MS
a solid pattern
MEMPTY
ME
an empty pattern
 density can be 1...5 style can be X | N angle can be 0...360.

For example, if STYLE='MSOLID' for the POLY function, the fill area that is drawn by the POLYCONT sequence uses a solid fill. If STYLE='M5N15', the fill area uses a shaded fill of parallel lines. The fill-pattern value M5N15 specifies that the lines use the heaviest density, are parallel, and are drawn at a 15-degree angle from the horizontal. See also the discussion of fill patterns for maps in VALUE=.

WHEN='B' | 'A'
specifies when to begin the polygon in relation to other procedure output.

X=horizontal-coordinate
Y=vertical-coordinate
Z=depth-coordinate (PROC G3D only)
XC='character-type-horizontal-coordinate'
YC='character-type-vertical-coordinate'
specify the initial point of the polygon that is being created. Use the Z variable only with the G3D procedure.

XSYS='coordinate-system'
specifies the coordinate system for the X or XC variable. Use the XC variable 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. Use the YC variable only with YSYS='2'. See YSYS Variable for an explanation of coordinate-system.

ZSYS='coordinate-system'
specifies the coordinate system for the Z variable. See ZSYS Variable for an explanation of coordinate-system.

Use POLY with POLYCONT to define and fill areas in the graphics output. POLY and POLYCONT do not update the (XLAST, YLAST) coordinates.