Graphics Reference
In-Depth Information
graph hbar prev exp tenure, over(occ7) xalternate yreverse
You can reverse the direction of the
y
-axis with the yreverse option. We
combine this with the xalternate
option to place the labels for the bars
on the alternate (right) side of the
graph.
Uses nlsw.dta & scheme vg s2c
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
8
6
4
2
0
mean of prev_exp
mean of tenure
4.7
Changing the look of bars, lookofbar options
This section shows how you can control the look of the bars in your bar charts: the
space between the bars, the color of the bars, and the characteristics of the line outlin-
ing the bars. For more information, see the lookofbar options table in [ G ] graph bar and
[ G ] barlook options . This section begins using the vg rose scheme.
graph bar wage hours ttl exp tenure, over(collgrad)
Consider this bar chart. It shows the
mean wages, hours worked per week,
total experience, and job tenure broken
down by whether one graduated college.
Uses nlsw.dta & scheme vg rose
40
30
20
10
0
not college grad
college grad
mean of wage
mean of hours
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