The polygon definition
is terminated by a new POLY command or by any of these functions:
BAR |
LABEL |
PIEXY |
DRAW |
MOVE |
POINT |
DRAW2TXT |
PIE |
SYMBOL |
FRAME |
PIECNTR |
Use POLY and POLYCONT
together to draw a polygon. The (X, Y) observation from the POLY
function and the last (X, Y) observation from POLYCONT are assumed
to connect. Thus, you are not required to respecify the first point.
For example, these statements draw a pentagon like the one in
Pentagon Produced with the POLY and POLYCONT Functions: data house;
retain xsys ysys "3";
length function $ 8;
/* start at the lower left corner */
function="poly"; x=35; y=25; output;
/* move to the lower right corner */
function="polycont"; x=65; y=25; output;
/* move to the upper right corner */
function="polycont"; x=65; y=65; output;
/* move to the center top*/
function="polycont"; x=50; y=80; output;
/* move to the upper left corner and complete the figure */
function="polycont"; x=35; y=65; output;
run;
proc ganno anno=house;
run;
quit;
Missing values for the
X and Y variables that are specified with POLYCONT are interpreted
differently from the way that they are interpreted with the other
functions. Other functions use the missing values to request a default
value. POLYCONT interprets a missing value as a discontinuity (that
is, a hole) in the polygon. If you are not using the data coordinate
system and you specify an X or Y value of –999 in a POLYCONT
observation, the default of (XLAST, YLAST) is used. Missing values
indicate holes and are handled identically in the Annotate facility
and the GMAP procedure. See
Displaying Map Areas and Response Data for more information about handling missing values.