BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
L_L
Calcite | Level 5 L_L
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

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

View solution in original post

2 REPLIES 2
GraphGuy
Meteorite | Level 14

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;

DanH_sas
SAS Super FREQ

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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