Hello,
The code below works for page 1, but once it continues onto the subsequent pages it reverts to one figure per page. What am I doing wrong? I have 18 figures and I want 3 pages of 6.
SAS 9.4, Enterprise Guide 8.2, on Linux server
Thanks!
Matt
ods listing close;
ods html close;
goptions reset=all;
options nodate nonumber orientation=landscape nobyline
topmargin=0.25in bottommargin=0.25in rightmargin=0.25in
leftmargin=0.25in;
ods pdf file='/Comorb Burden.pdf';
ods graphics/noborder;
ods layout gridded columns=3 column_widths=(3in 3in 3in) rows=2 row_heights=(3in 3in) advance=bygroup;
proc sgpanel data=zcdi.allsid_cdi_output2;
*title '#byval1';
by bygroup;
where pay1 in(1:4);
panelby pay1 /columns=1 rows=4;
vbar agegrp / response=prop_100k stat=sum datalabel;
rowaxis label='Proportion per 100k';
format prop_100k 8.0 pay1 _pay.;
run;
ods pdf close;
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.