Graphics Reference
In-Depth Information
graph pie, over(occ7) sort(occ7alpha)
Say that we wanted to sort the slices
(alphabetically) by occupation name.
We have created a new variable,
occ7alpha , that is a recoded version of
occ7 . It is recoded such that, as
occ7alpha goesfrom1to7,the
occupations are alphabetized (except
for Other, which is placed last). We
add sort(occ7alpha) , and the slices
are ordered alphabetically.
Uses nlsw.dta & scheme vg lgndc
Cler.
Labor
Mgmt
Operat.
Prof
Sales
Other
7.3
Changing the look of pie slices, colors, and exploding
This section describes how to change the color of pie slices, explode pie slices, control
the overall intensity of colors, and control the characteristics of lines surrounding the pie
slices. For more details, see [ G ] graph pie . This section uses the vg rose scheme.
graph pie, over(occ7)
Consider this pie chart showing the
number of women who work in these
seven different occupations. The slices
are colored using the colors indicated
by the scheme. None of the slices are
exploded, and no lines surround the
slices.
Uses nlsw.dta & scheme vg rose
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