Dear all
I have two questions:
1) Proc SGSCATTER: is there the same statement used in PROC GPLOT:
order=(x to xx by x)?
2) Proc GPLOT: How can I do not to show the digits after comma (.00) in Y AXIS ?
Thanks in advance for any help
To answer the SGSCATTER question:
If you are creating single-cell scatter plots like you would with GPLOT, you should be using SGPLOT instead of SGSCATTER. SGSCATTER is designed to create panels of scatter plots and matrices. In SGPLOT, there are four axis statements: XAXIS, YAXIS, X2AXIS, and Y2AXIS. You can specify VALUES=(x to y by z) on the necessary axis. Also, the optional VALUESHINT option changes the interpretation of VALUES such that the start and end values do not dictate the axis range.
Hope this helps!
Dan
Per the gplot question ... you can use a format statement on the y-variable to control its appearance. For example:
proc gplot data=sashelp.stocks;
format close comma8.0;
plot close*date;
run;
To answer the SGSCATTER question:
If you are creating single-cell scatter plots like you would with GPLOT, you should be using SGPLOT instead of SGSCATTER. SGSCATTER is designed to create panels of scatter plots and matrices. In SGPLOT, there are four axis statements: XAXIS, YAXIS, X2AXIS, and Y2AXIS. You can specify VALUES=(x to y by z) on the necessary axis. Also, the optional VALUESHINT option changes the interpretation of VALUES such that the start and end values do not dictate the axis range.
Hope this helps!
Dan
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!
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.