BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am making a bunch of scatter plots in a macro, and each of the X and Y axis has different maximum value, by default, SAS determine the tick mark for us. For example Y has a max at 81, then the value of the tick might be 0, 20, 40, .. 80. While if X has a max at 126, then the value might be 0, 25, 50, ... 125

I was curious if I could specify an equal increment (eg. 10) in both axis, independent of what the max value is. I know the VALUE option in the xaxis/ yaxix statement (eg. in PROC SGSCATTER) might help for individual plot, but is there an easy way to change the value of the tick on the axis in making large amount of graphs? Thanks.
1 REPLY 1
deleted_user
Not applicable
No that I know of.

Although it doesn't appear to apply to your situation, if having a (largish) uniform axis was acceptable, I have sometimes converted multiple variables to multiple records, and then used the UNIFORM option with a BY statement.

Another thing I've done is had the macro get the minimum and maximum, and then dynamically built the plot code according to my own preferred algorithm.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 723 views
  • 0 likes
  • 1 in conversation