Using ANNOTATE to add text to a plot in SAS/GRAPH

0 Posted by
Posted in Programming

Using ANNOTATE to add text to a plot in SAS/GRAPH

An example which creates an annotate dataset with a text label to be displayed in a plot, using GPLOT in SAS/GRAPH

* Adds text TEXT HERE at data point 23 on x-axis, 100% *;
* position on y-axis *;

data annot; length function $8; x=23; function='LABEL'; text='TEXT HERE'; color='LIGR'; position='2'; xsys='2'; ysys='1'; y=100; size=1.5; output; run;

proc gplot.... plot ... / annotate=annot; run; quit;

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>