Hello Beautiful People!
I'm using Proc SGPLOT to plot the end results of Proc X11. What I would like to do is specify an output file for my graph, but I'm not seeing an Output statement or anything of the sort that will allow me to save my graph to a file to then be exported. Here's an example:
/*Plot of D10 - the Final Seasonal Factors*/
Title "Monthly Seasonal Factors";
proc sgplot data=work.dummytest;
series x=Month y=d10 / markers markerattrs=(symbol=CircleFilled) ;
run;
Can this be done with Proc SGPLOT? Any information is greatly appreciated; thanks!
-Valentine
Use ODS PDF like this
ods pdf file='path\plot.pdf';
proc sgplot data=sashelp.class;
scatter x=height y=weight;
run;
ods pdf close;
Use ODS PDF like this
ods pdf file='path\plot.pdf';
proc sgplot data=sashelp.class;
scatter x=height y=weight;
run;
ods pdf close;
Thank you draycut; this is just what I was looking for!
Hello,
In SAS EG you can send the output to word, excel, powerpoint by point & click. Also in Base SAS you can just use save. If your prefer point & click features instead of coding.
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!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.