Graphics Reference
In-Depth Information
7.2
Sorting pie slices
This section describes how you can sort and arrange slices in pie charts. For more de-
tails, see [ G ] graph pie . This section uses the vg lgndc scheme, which places the legend
at the left in a single column.
graph pie, over(occ7)
Consider this pie chart showing the
number of women who work in these
seven different occupations. The slices
are ordered according to the levels of
occ7 from 1 to 7, rotating clockwise,
starting with the first slice, which is
positioned at 90 degrees.
Uses nlsw.dta & scheme vg lgndc
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
graph pie, over(occ7) noclockwise
With the noclockwise option, you can
display the slices in counterclockwise
order.
Uses nlsw.dta & scheme vg lgndc
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
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