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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 0 replies
  • 1444 views
  • 0 likes
  • 1 in conversation