Help using Base SAS procedures

Scatter plot - modifying axis

Reply
N/A
Posts: 0

Scatter plot - modifying axis

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.
N/A
Posts: 0

Re: Scatter plot - modifying axis

Posted in reply to deleted_user
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.
Ask a Question
Discussion stats
  • 1 reply
  • 108 views
  • 0 likes
  • 1 in conversation