Graphics Reference
In-Depth Information
graph hbar wage, over(urban3) over(union)
Consider this graph, where we use the
over(union) option to compare the
mean wages of union workers with
nonunion workers. One aspect this
graph hides is that there are a number
of missing values on the variable union .
Uses nlsw.dta & scheme vg rose
Rural
nonunion
Suburb
Urban
Rural
union
Suburb
Urban
0
2
4
6
8
10
mean of wage
graph hbar wage, over(urban3) over(union) missing
By adding the missing option, we then
see a category for those who are
missing on the union variable, shown as
the third set of bars. The label for this
bar is a single dot, which is the Stata
indicator of missing values. The section
Bar : Cat axis (123) shows how you can
give this bar a more meaningful label.
Uses nlsw.dta & scheme vg rose
Rural
nonunion
Suburb
Urban
Rural
union
Suburb
Urban
Rural
.
Suburb
Urban
0
2
4
6
8
10
mean of wage
graph bar wage, over(grade) over(collgrad)
Consider this bar chart, which breaks
wages down by two variables: the last
grade that one completed and whether
one is a college graduate. By default,
Stata shows all possible combinations
for these two variables. In most cases,
all combinations are possible, but not
in this case.
Uses nlsw.dta & scheme vg rose
20
15
10
5
0
4 5 6 7 8 9 101112131415161718
4 5 6 7 8 9 101112131415161718
not college grad
college grad
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