Graphics Reference
In-Depth Information
graph pie, over(occ7) legend(title(Occupation, position(6) ))
We can use the position() option
within the title() option to control
the position of the title. Here, we put
the title in the 6 o'clock position,
placing it at the bottom of the legend.
Uses nlsw.dta & scheme vg brite
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
Occupation
graph pie, over(occ7) legend(colfirst)
We can use the legend(colfirst)
option to order the items in the legend
by columns instead of rows.
Uses nlsw.dta & scheme vg brite
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
graph pie, over(occ7) legend(colfirst order(7 651234)holes(1) )
The pie wedges rotate clockwise, and
here we make the items within the
legend rotate in a similar clockwise
fashion, starting from the top right.
The order() option puts the items in
the legend in a clockwise order, and the
holes(1) option leaves the first
position empty.
Uses nlsw.dta & scheme vg brite
Prof
Mgmt
Sales
Cler.
Other
Labor
Operat.
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