SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Creating Plots
Scaling Axes


Range of Values

You can also scale axes by specifying a range of values. Notice the default scaling of the vertical axis in the plot below.


Plot with default vertical scale.

To scale the vertical axis from 0 to 100 in increments of 50, for example, you can use the VAXIS= option shown in the PROC GPLOT step below.
     proc gplot data=clinic.therapy1999;
plot aerclass*month / haxis='01' '06' '12'

vaxis=0 to 100 by 50;
run;

The modified vertical axis appears in the plot below.


Plot with optional vertical axis.

NOTE: When you specify a range of values, be sure to scale the axis in workable increments to accommodate the smallest and largest data values to be plotted.


back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement