BookmarkSubscribeRSS Feed
kcsb
Calcite | Level 5

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?

3 REPLIES 3

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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
  • 3 replies
  • 454 views
  • 0 likes
  • 2 in conversation