Graphics Reference
In-Depth Information
graph dot prev exp tenure, over(occ7)
Consider this dot plot showing previous
and current work experience broken
down by occupation. Each dot plot has
a series of small dots that forms a line
on which the symbols are plotted.
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)
ndots(50) dots(msymbol(Oh) msize(medium) mcolor(dkgreen))
By default, each line would be
composed of 100 small dots, but here
we use the ndots(50) option to display
50 small dots. Further, using the
dots() option, the small dots are
displayed as medium-sized, dark green,
hollow circles. See Styles : Symbols
(342), Styles : Markersize (340), and
Styles : Colors (328) for more
information.
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) linetype(line)
lines(lwidth(thick) lcolor(erose))
Using the linetype(line) option, the
dots are instead displayed as lines.
Further, we use the lines() option to
make the line width thick and the line
color rose. We could also add the
lpattern() option to control the line
pattern. See Styles : Linewidth (337),
Styles : Colors (328), and
Styles : Linepatterns (336) for more
information.
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
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