BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I know SAS can plot multiple graphs on one page, but how to plot 2 different kind of graphs out of 2 data set, side by side on 1 page?

for example, I have "history overlay" and "forecast vs actual" for the same items, and I wanna show 2 report for each item on 1 page.

Is there any gplot option or procedure to complish it easily? Thanks,
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
For regular (GPLOT,GCHART) SAS/GRAPH, you can "replay" SAS/GRAPH images (such as a plot and a chart) side by side using the GREPLAY procedure. There are a number of predefined SAS/GRAPH layout templates that you can use for this. For more information about GREPLAY:
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/greplay-proc-greplay-stateme...
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/a000234693.htm

If your destination of choice is ODS HTML, you can investigate the HTMLPANEL variation of that destination:
[pre]
ODS TAGSETS.HTMLPANEL ....
[/pre]

which will allow you to design side by side tables, side by side graphs or side by side tables and/or graphs in just about any combination, as described here:
http://support.sas.com/rnd/base/ods/odsmarkup/htmlpanel.html

If you destination of choice is ODS PDF, then you can investigate the use of COLUMNS=2, which sometimes will be sufficient or you can investigate the new ("pre-production") ODS LAYOUT capability.
http://support.sas.com/rnd/base/early-access/index.html (see ODS LAYOUT here)

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 904 views
  • 0 likes
  • 2 in conversation