Graphics Reference
In-Depth Information
graph bar ttl exp tenure, over(married) over(urban2)
by(union, missing total )
We can add the total option to include
a panel for all observations.
Uses nlsw.dta & scheme vg s1c
nonunion
union
single
married
single
married
single
married
single
married
Rural
Metro
Rural
Metro
(missing)
Total
single
married
single
married
single
married
single
married
Rural
Metro
Rural
Metro
mean of ttl_exp
mean of tenure
Graphs by union worker
graph hbar ttl exp tenure, over(married) over(urban2)
by(union, cols(1) )
We remove the total and missing
options and flip the graph to make a
horizontal bar chart. We then use the
cols(1) option to show these graphs in
one column. This makes the graph
pretty cramped. Let's explore a number
of options we can add to this graph to
make it less cramped, adding the
options just a small number at a time.
Uses nlsw.dta & scheme vg s1c
nonunion
single
Rural
married
single
Metro
married
union
single
Rural
married
single
Metro
married
0
5
10
15
mean of ttl_exp
mean of tenure
Graphs by union worker
graph hbar ttl exp tenure, over(married) over(urban2)
by(union, cols(1) note("") )
We add the note("") option within the
by() option, and that suppresses the
note in the left corner, leaving more
room for the graph.
Uses nlsw.dta & scheme vg s1c
nonunion
single
Rural
married
single
Metro
married
union
single
Rural
married
single
Metro
married
0
5
10
15
mean of ttl_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