The SAS Output Delivery System and reporting techniques

ODS RTF Multiple Graphs

Reply
N/A
Posts: 0

ODS RTF Multiple Graphs

I am having a problem getting my graphs to fit on one page. The following code is an example of something I am trying to do with my data. I plot several charts on one page but SAS rather than shrink them to fit overlaps.

How can I shrink them whilst keeping the graph exactly as it is. I know I could set device=jpeg but I want to keep the ineractivity.

Thanks

options papersize=A4 orientation=landscape;

ods rtf file ='/user01/ucollrec/Alan/rtfexample.rtf' columns=3 keepn startpage=no;

Axis1
STYLE=1
WIDTH=1
MINOR=NONE;
Axis2
STYLE=1
WIDTH=1;
Axis3;
Axis3
STYLE=1
WIDTH=1;
TITLE;
TITLE1 "Bar Chart";
FOOTNOTE;
FOOTNOTE1;

PROC GCHART DATA=SAShelp.air;
VBAR3D DATE
/ SUMVAR=AIR
SHAPE=BLOCK
FRAME TYPE=SUM
COUTLINE=BLACK
RAXIS=AXIS1
MAXIS=AXIS2
GAXIS=AXIS3
GAXIS=AXIS3;
RUN;

PROC GCHART DATA=SAShelp.air;
VBAR3D DATE
/ SUMVAR=AIR
SHAPE=BLOCK
FRAME TYPE=SUM
COUTLINE=BLACK
RAXIS=AXIS1
MAXIS=AXIS2
GAXIS=AXIS3
GAXIS=AXIS3;
RUN;

PROC GCHART DATA=SAShelp.air;
VBAR3D DATE
/ SUMVAR=AIR
SHAPE=BLOCK
FRAME TYPE=SUM
COUTLINE=BLACK
RAXIS=AXIS1
MAXIS=AXIS2
GAXIS=AXIS3
GAXIS=AXIS3;
RUN;

PROC GCHART DATA=SAShelp.air;
VBAR3D DATE
/ SUMVAR=AIR
SHAPE=BLOCK
FRAME TYPE=SUM
COUTLINE=BLACK
RAXIS=AXIS1
MAXIS=AXIS2
GAXIS=AXIS3
GAXIS=AXIS3;
RUN;
N/A
Posts: 0

Re: ODS RTF Multiple Graphs

In the SAS/Graph documentation, look at the syntax for the procedure to save the results to a graphics catalogue.

Then look at the documentation for the Template procedure which will let you design a layout for your results page.

Finally, look at the documentation for the GReplay procedure which will let you redraw your graphs onto the template.


This solution is very specific to the SAS/Graph product and is outside the scope of this discussion group. If you continue to have trouble, search for SAS papers on the template and GReplay procedures, or call SAS technical support.


Kind regards

David
Ask a Question
Discussion stats
  • 1 reply
  • 121 views
  • 0 likes
  • 1 in conversation