LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 1999, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: 'José Ailton Alencar andrade'
          <andrade@INEP.GOV.BR>
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.


Back to: Top of message | Previous page | Main SAS-L page