11-30-2016 11:28 AM
I'm trying to format the y-axis on a histogram and no matter what I try the y-axis doesn't change from the default. SAS isn't giving any errors so I don't know what the problem is. Here is an example of what I am trying:
proc univariate data=data; var variable; histogram variable/ vscale=percent vaxis=0 to 70 by 10; run;
11-30-2016 11:55 AM
I tried 0 to 0.7 by 0.1 also and that doesn't work either. I get a warning that says:
"WARNING: The VAXIS= list must cover the range from 0 to 67.356797792 in order to be used" Also I'm using SAS 9.3.
11-30-2016 03:15 PM
Works fine for me.
Try this one and see the graph.
proc univariate data=sashelp.class; var age; histogram age/ vscale=percent vaxis=0 to 50 by 10; run;
11-30-2016 04:03 PM
Yes the first graph was correct, but even if I open up a new SAS session and try:
proc univariate data=sashelp.class; var age; histogram age/ vscale=percent vaxis=0 to 70 by 10; run;
It will still stop at 50. It's like it always gives me the default. I tried with some other datasets in the SASHELP library, and it always seems like it gives me the default regardless of what I specify.