Graphics Reference
In-Depth Information
graph pie pop,
over(division)
In this syntax, you supply a single
y
-variable and an
over()
option. In
this case, the
-variable corresponds to
the population of the state, the entire
pie corresponds to the entire
population, and each slice corresponds
to the percentage of the population for
each level of
division
.
Uses allstates.dta & scheme vg s1c
y
N. Eng.
Mid Atl
E.N.C.
W.N.C.
S. Atl.
E.S.C.
W.S.C.
Mountain
Pacific
graph pie,
over(occ7)
For this third example, we switch to the
nlsw
data file. In this syntax, an
over()
option is supplied, but no
y
-variable is supplied (in a sense, the
observation itself serves as the
y
-variable). This pie chart is much like
a visual frequency distribution of
occ7
,
where the size of each slice corresponds
to the proportion of women in each
occupation.
Uses nlsw.dta & scheme vg s1c
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
graph pie, over(union)
missing
This example shows the proportion of
women in union and nonunion jobs. We
add the
missing
option, and another
pie slice is added for the observations in
which
union
is missing.
Uses nlsw.dta & scheme vg s1c
nonunion
union
.
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.