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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 699 views
  • 0 likes
  • 1 in conversation