Graphics Reference
In-Depth Information
graph bar prev exp tenure ttl exp hours, ascategory
You can use the ascategory option to
indicate that you want Stata to graph
multiple
y
-variables using the style that
would be used for the levels of an
over() variable. Comparing this graph
with the previous graph, note how the
bars for the different variables are the
same color and labeled on the
x
-axis
rather than using a legend.
Uses nlsw.dta & scheme vg s1m
mean of prev_exp
mean of tenure
mean of ttl_exp
mean of hours
graph bar prev exp tenure, over(occ5)
Consider this graph, where we show
work experience prior to one's current
job ( prev exp ) and work experience at
one's current job ( tenure )brokendown
by occ5 . The total of previous and
current work experience represents
total work experience, and you might
want to show each bar as a percent of
total work experience. The next
example shows how you can do that.
Uses nlsw.dta & scheme vg s1m
Prof/Mgmt
Sales
Clerical
Labor/Ops
Other
mean of prev_exp
mean of tenure
graph bar prev exp tenure, over(occ5) percentages
Here, we show the time worked before
one's current job, prev exp , and time
at the current job, tenure , in terms of
their percentage of the total (i.e.,
percentage of total work experience).
We can view the bars in this way using
the percentages option.
Uses nlsw.dta & scheme vg s1m
Prof/Mgmt
Sales
Clerical
Labor/Ops
Other
mean of prev_exp
mean of tenure
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