The SAS Output Delivery System and reporting techniques

6 graphs on one page, how can I do that ?

Reply
Occasional Contributor
Posts: 17

6 graphs on one page, how can I do that ?

Hey everybody,

I use a proc GPLOT to make some graphs but in my RTF ODS, I have only one graph by page. How can I obtain 6 graphs by page for example (in 2 colums and 3 lines) ?

By advance, thanks a lot,

Céline
Super Contributor
Posts: 292

Re: 6 graphs on one page, how can I do that ?

Posted in reply to Celine_France
Celine;

You will need to produce the 6 individual graphs to the approximate size required (use hsize & vsize options) into a catalog (default is gseg). You then need to replay these 6 charts into the final rtf file using proc greplay.

hth
Super Contributor
Posts: 273

Re: 6 graphs on one page, how can I do that ?

Posted in reply to Celine_France
Celine

Gplot so you are using sas graph on 9.1.3 i suppose
with ods you have two manners to reach this

with ods pdf using goptions like hsize vsize horigin and vorigin
and ods pdf startpage=...... you main obtain it quite quickly page24

but under ods rtf i think the only way is to make use of the proc greplay
with the appropiate template page 20

see my contribution to French Club STAT and Pharma 2008
at
http://etudes.ebi-edu.com/sas_pharma/modules.php?name=Downloads&d_op=viewdownload&cid=4

8th text

HTH
Andre
Occasional Contributor
Posts: 17

Re: 6 graphs on one page, how can I do that ?

Bill and Andre,

thanks a lot for your answers. I did know proc greplay which is quite useful. I don't know how to create a template so I used v3s in order to have 3 graphs in 1 column. Then, I made some "copy-paste" in word. On word, I asked to present my document into 2 colums. So, I obtained what I would like : 6 graphs on 1 page !

Again, thanks a lot,

Céline
PROC Star
Posts: 1,760

Re: 6 graphs on one page, how can I do that ?

Posted in reply to Celine_France
Double-click on sashelp.templt.v3s and look at the 3 place holders' coordinates in the log, in the form lower-left x, lower-left y, etc.

You can then make your own easily: look up statement TDEF in the proc GREPLAY doc. The doc has an example for a five panel template.
Occasional Contributor
Posts: 17

Re: 6 graphs on one page, how can I do that ?

Chris@NewZealand,

Thanks to your information, I have created my template ! Thanks a lot !

Here is the code if it can help someone :

proc greplay tc=work.Templt
nofs;
tdef L3r3s des="3 BOXES LEFT, 3 BOXES RIGHT (WITH SPACE)"
1/llx=0 lly=70
ulx=0 uly=100
urx=48 ury=100
lrx=48 lry=70
color=black
2/llx=00 lly=35
ulx=00 uly=65
urx=48 ury=65
lrx=48 lry=35
color=black
3/llx=00 lly=00
ulx=00 uly=30
urx=48 ury=30
lrx=48 lry=00
color=black
4/llx=52 lly=70
ulx=52 uly=100
urx=100 ury=100
lrx=100 lry=70
color=black
5/llx=52 lly=35
ulx=52 uly=65
urx=100 ury=65
lrx=100 lry=35
color=black
6/llx=52 lly=00
ulx=52 uly=30
urx=100 ury=30
lrx=100 lry=00
color=black;
quit;

Enjoy your week-end !

Céline
PROC Star
Posts: 1,760

Re: 6 graphs on one page, how can I do that ?

Posted in reply to Celine_France
Ask a Question
Discussion stats
  • 6 replies
  • 249 views
  • 0 likes
  • 4 in conversation