01-15-2018 05:25 PM
I was trying to output my graph as a PNG file, but nothing came out under my directory. Following is my code:
filename grafout 'E:\test.png'; goptions reset=all gsfname=grafout gsfmode=replace device=png; proc sgplot data=plot; vbox value / category=time group=TreatName ; run; quit; filename grafout clear;
Anyone has any idea about output the graph? Thank you very much!
01-15-2018 06:04 PM
01-15-2018 11:34 PM
ODS GRAPHICS is not an ODS destination statement, like HTML or PDF. It does not have to be closed.
ODS GRAPHICS can be turned on and off (e.g. ods graphics off; but the on/off does not affect the SG procedures. The on/off for controlling ODS Graphics output from SAS/STAT and other procedures that support that output.
As you said, the TICKSTYLE option was added after 9.4m2; however, it is definitely possible to annotate the tick marks on the inside. Here is a reference to a paper I wrote about annotation that should help you get started if you have not used annotation in this system.
Hope this helps!
Need further help from the community? Please ask a new question.