I have created 4 separate plots using proc sgplot and arranged them in a 2x2 grid. when I am trying to save the grid plot to my device, it saves all the four plots individually and not the grid plot. Here's the code I am using:
ods listing gpath='path';
ods graphics / imagename="test.png" imagefmt=png;
title 'Panel Plot';
ods layout gridded columns=2 rows=2 column_gutter=0cm row_gutter=0cm column_widths=(14.5cm 14.5cm);
ods region;
proc sgplot data=work.mod1;
series x=Pt_no y=pred1 / group=Group markers;
label Pt_no = "x" pred1 = "y";
title "abc";
styleattrs datacontrastcolors=(big bib crimson);
run;
ods region;
proc sgplot data=work.mod2;
series x=Pt_no y=pred2 / group=Group markers;
label Pt_no = "x" pred2 = "y";
title "bvdfb";
styleattrs datacontrastcolors=(big bib crimson);
run;
ods region;
proc sgplot data=work.mod3;
series x=Pt_no y=pred3 / group=Group markers;
label Pt_no = "x" pred3 = "y";
title "vsedf";
styleattrs datacontrastcolors=(big bib crimson);
run;
ods region;
proc sgplot data=work.mod4;
series x=Pt_no y=pred4 / group=Group markers;
label Pt_no = "x" pred4 = "y";
title "vsrdgr;
styleattrs datacontrastcolors=(big bib crimson);
run;
ods layout end;
is there a way to save the grid plot with 300 dpi resolution?
Thank you so much!
The plots are getting saved individually. Is there a way I can save the grid plot I created?
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
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.