Stata 15 help for _natscale


[G-2] _natscale -- Obtain nice label or tick values


_natscale #_min #_max #_n


_natscale returns in r() "nice" values for labeling or ticking of the range #_min to #_max in approximately #_n steps.

Stored results

_natscale returns in r()

scalar r(n) number of values chosen scalar r(min) first value to label or tick scalar r(max) last value to label or tick scalar r(delta) (r(max)-r(min))/r(n)

The values to tick are r(min), r(min)+r(delta), r(min)+2*r(delta), ..., r(min)+(r(n)-1)*r(delta).

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index