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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 742 views
  • 0 likes
  • 1 in conversation