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 2024

innovate-wordmarks-white-horiz.png

SAS is headed back to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team.

Interested in speaking? Content from our attendees is one of the reasons that makes SAS Innovate such a special event!

Submit your idea!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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