Date: Mon, 29 Nov 1999 14:44:30 +0100
Reply-To: Eric Hoogenboom <e.hoogenboom@BIG.NL>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Eric Hoogenboom <e.hoogenboom@BIG.NL>
Subject: Re: Points labels in Gplot Procedure
Content-Type: text/plain; charset="iso-8859-1"
Jose,
Yes you will have to use annotate. Be prepared for a long struggle.
I can send you code if you like, but I am afraid that it would take too much
time to find the useful parts. Therefore, something to start with:
* Create an annotate dataset. This is a regular dataset with special
names for the variables and functions, like X and Y for the coordinates,
TEXT for the text you want to print, function 'LABEL' for the print job
etcetera. They are described in SAS Graph version 6 page 514-535, 537-570.
* To make it easy for you SAS has written some macros. Look for
%annomac and %dclanno to start annotating. Look for %label to write your
labels in the plot. They are described on pages 571-587, and can be found in
the file SASROOT\core\sasmacro\annomac.sas.
* To put the labels in the correct position you have to define the
coordinate system via the XSYS and YSYS variable. Define them as '2'.
* Pass the annotate-dataset as a parameter in your proc gplot call.
You won't find it easy. But when you master it, you can make almost any type
of graph you have ever dreamt of.
Eric
> -----Original Message-----
> From: José Ailton Alencar andrade [SMTP:andrade@INEP.GOV.BR]
> Sent: Monday, November 29, 1999 2:25 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Points labels in Gplot Procedure
>
> Hello All,
>
> How do I replace the plot symbols (dot, star, etc.) to a variable
> label? I think we have to use the Annotate Facility. But I have not
> clearly how.
>
> thanks.
|