Graphics Reference
In-Depth Information
twoway histogram ttl exp, start(-2.5) width(5)
We add the start() option to indicate
that we want the lower limit of the first
bintostartat
2.5.
Uses nlsw.dta & scheme vg past
0
10
20
30
Tot. work exper.
twoway histogram ttl exp, fraction width(1)
If we use the fraction option, the
y
-axis is scaled such that the height of
each bar is the probability of falling
within the range of
-values represented
by the bar. Thus, if we specify the
width of bars to be 1, the sum of the
heights of the bars is 1.
Uses nlsw.dta & scheme vg past
x
0
10
20
30
Tot. work exper.
twoway histogram ttl exp, percent width(1)
The percent option is similar to the
fraction option, except that the
y
-axis
is represented as a percentage instead
of a proportion. If we also specify a bar
width of 1, the sum of the heights of
the bars is 100%.
Uses nlsw.dta & scheme vg past
0
10
20
30
Tot. work exper.
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.
Search WWH ::




Custom Search