Data visualization with SAS programming

putting a smaller dataset inside a graph in PDF file

Reply
Contributor
Posts: 57

putting a smaller dataset inside a graph in PDF file

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.
SAS Super FREQ
Posts: 8,641

Re: putting a smaller dataset inside a graph in PDF file

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
Post a Question
Discussion Stats
  • 1 reply
  • 140 views
  • 0 likes
  • 2 in conversation