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-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!

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