BookmarkSubscribeRSS Feed
echoli
Obsidian | Level 7

Hi All,

 

I want to output a rtf file with multiple figures, but I just know how to stack multiple graphs vertically on the same page, is that possible to have 2 columns in one page in rtf? I use layout, but the log shows layout is not supported in RTF destination. Below is my code:

 

options nodate nonumber;
ods _all_ close;
ods rtf file = 'figures.rtf' startpage = no image_dpi = 300;
ods layout gridded columns = 2;
ods graphics / reset = all outputfmt = png height = 3in width = 4in;

proc univariate data=combine_1;
var var_1;
class Group;
histogram var_1 / midpoints = (0 to 100 by 5)
nrow = 3 odstitle = "VAR"
normal (color = red) kernel
cfill = ltgray ctext = blue
nohlabel
vscale = percent;
inset N = 'N' MEDIAN (8.2) MEAN (8.2) STD = 'Standard Deviation'(8.3) / position = ne;
ods select histogram;
run;

title 'var_1';
proc boxplot data = combine_1;
plot var_1*group /
nohlabel;
label var_1 = 'VAR';
*inset min max / pos = topoff;
insetgroup min (5.2) max (5.2) mean (5.2) stddev (5.2) / header = 'Stats by VAR';
run;
ods _all_ close;
ods preferences;

 

Thanks,

C

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 0 replies
  • 1761 views
  • 0 likes
  • 1 in conversation