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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.