BookmarkSubscribeRSS Feed
Sandhya
Fluorite | Level 6
Hi,

I use proc gplot to generate a graph. Now I want to add a small data set(table) inside the graph. Something similar to what is done in

http://www.lexjansen.com/pharmasug/2007/po/po01.pdf

in page 5. In the paper they haven't given the code for doing this.

I wanted to use annotate facility and I'm writing a macro for it. Since, its a part of a bigger program which is been in development for the past 2 years, I cannot change it graphical procedure PROC GPLOT to anything else. I didn't know how to attach a dataset and direct it to print the same, using the annotate facility. Your guidance is much appreciated.

Thanks in advance.

Sandhya.
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
Look on page 3 of that paper. The author wrote a macro program called %AnnoTbl which is what he features in this paper to put the inset table onto the GPLOT shown on page 5. The call to %AnnoTbl is shown on page 4 for the output on page 5.

You could contact the author of the table to see whether he will share his macro code with you. Or, you could write your own macro program. Or you could figure out the ANNOTATE facility statements that are needed to put an inset box onto a "traditional" SAS/GRAPH procedure output. OR, you could use the new SG procedures in SAS 9.2 with the INSET statement to put an INSET box onto a graph area.

cynthia

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1119 views
  • 0 likes
  • 2 in conversation