BookmarkSubscribeRSS Feed
Sandhya
Fluorite | Level 6
Hi,

I have a dataset with variables

AN
w_24
f_24
g_24
w_25
f_25
g_25
w_log24
f_log24
g_log24
w_log25
f_log25
g_log25

I need 4 different for each AN value. So I used this code.

proc gplot data=abc;
title "an=#byval(an)";
by an;

plot g_24*w_24 g_25*w_25 overlay/nolegend
anno=anno_markers;

plot f_24*w_24 f_25*w_25 overlay/nolegend
anno=anno_markers;

plot g_log24*w_log24 g_log25*w_log25 overlay/nolegend
anno=anno_markers;

plot f_log24*w_log24 f_log25*w_log25 overlay/nolegend
anno=anno_markers;

run;
quit;

Now I need to ods it. The constraint is to fit all the 4 plots for each AN in one page. Meaning, if there are 8 AN then I need to have 9 pages. Each page should contain all the 4 plots.

I tried ODS pdf file= startpage=n0 column=2;
goptions vsize=4in;

This gives 2 columns in each page. Each column contains 2 graphs. In the crude form it satisfies the requirements but they are in 2 different start point.

|
|
| |
| |
|
|

The alignment is not clear.

I tried ods layout column=2 rows=2;

not getting the desired result.

I tried tagsets.htmlpanel. The alignment is fine but the graph is nnot getting printed.

Please help.

Thanks,
Sandhya.
2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12
Check out GREPLAY to position the plots on the page and then send the results of GREPLAY to ODS.

If you are using SAS 9.2, then you may also want to consider SGPLOT as it gives you a lot of control.

Doc Muhlbaier
Duke
Sandhya
Fluorite | Level 6
PROC GREPLAY with template option worked.

Thank you

Sandhya.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 741 views
  • 0 likes
  • 2 in conversation