Graphics Reference
In-Depth Information
graph dot prev exp tenure, over(occ7)
marker(1, msymbol(d) mfcolor(teal) mlcolor(dkgreen) mlwidth(thick))
marker(2, msymbol(S) mfcolor(ltblue) mlcolor(blue) mlwidth(thick))
In this example, we use two marker()
options, so we can control both
markers. The first marker is now a
diamond with a teal fill and a thick,
dark green outline. The second marker
is a square, light blue on the inside with
a thick blue outline. The section
Options : Markers (235) has more details
on controlling markers.
Uses nlsw.dta & scheme vg s2c
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
2
4
6
8
mean of prev_exp
mean of tenure
graph dot prev exp tenure, over(occ7) linegap(45)
We can use the linegap() option to
display the
-variables on different lines
and specify the gap between these lines.
The default value is 0, meaning that all
y
y
Prof
Mgmt
Sales
-variables are displayed on the same
line.
Uses nlsw.dta & scheme vg s2c
Cler.
Operat.
Labor
Other
0
2
4
6
8
mean of prev_exp
mean of tenure
graph dot tenure, over(occ5) over(collgrad) over(married)
Consider this graph. Since we have
used three over() options, the levels of
the first over() variable are displayed
as though they were different
y
not college grad
single
college grad
-variables. We may want to use the
linegap() option to display the
different
not college grad
married
-variables on different lines to
make the graph more readable; see the
next example.
Uses nlsw.dta & scheme vg s2c
y
college grad
0
2
4
6
8
10
mean of tenure
Prof/Mgmt
Sales
Clerical
Labor/Ops
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