Graphics Reference
In-Depth Information
Unless otherwise mentioned, the legend options described below work the same whether
the legend was derived from multiple
y
-variables or from an over() variable that was com-
bined with the asyvars option.
graph dot prev exp tenure ttl exp, over(occ7) nolabel
The nolabel option only works when
you have multiple
-variables. When
this option is used, the variable names
(not the variable labels) are used in the
legend. For example, instead of showing
the variable label Prev. work exper. ,
this option shows the variable name
prev exp .
Uses nlsw.dta & scheme vg rose
y
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
5
10
15
prev_exp
tenure
ttl_exp
graph dot prev exp tenure ttl exp, over(occ7)
legend(label(1 "Previous") label(2 "Current") label(3 "Total")
title("Work Experience"))
We use the legend(label()) option to
change the labels for the variables in
the legend and the title() option to
add a title to the legend.
Uses nlsw.dta & scheme vg rose
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
5
10
15
Work Experience
Previous
Current
Total
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