Graphics Reference
In-Depth Information
graph box wage, nooutside over(occ5)
Consider this graph showing the hourly
wages broken down by occupation. We
use the nooutsides option to suppress
the display of outside values. For the
rest of the graphs in this section, there
would be a large number of outside
values, which would make the graphs
very cluttered, so we will include the
nooutsides option for each example.
Uses nlsw.dta & scheme vg lgndc
Prof/Mgmt
Sales
Clerical
Labor/Ops
Other
excludes outside values
graph box prev exp tenure, nooutside over(occ5)
ytitle("Years of experience")
Looking at previous and current work
experience over occupations, we can use
the ytitle() option to add a title to
the
-axis. See Options : Axis titles (254)
and [ G ] axis title options for more
details, but please disregard any
references to xtitle() there since that
option is not valid when using graph
box .
Uses nlsw.dta & scheme vg lgndc
y
Prev. work exper.
Curr. work exper.
Prof/Mgmt
Sales
Clerical Labor/Ops
Other
excludes outside values
graph hbox prev exp tenure, nooutside over(occ5)
ytitle("Years of" "experience")
In this example, we place the title
across two lines by using two separate
quoted strings. Note that, even though
we have used graph hbox to place the
y
Prof/Mgmt
Sales
-axis on the bottom axis, we still
should use ytitle() to change the title
of that axis.
Uses nlsw.dta & scheme vg lgndc
Prev. work exper.
Clerical
Curr. work exper.
Labor/Ops
Other
0
5
10
15
20
Years of
experience
excludes outside values
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