Graphics Reference
In-Depth Information
graph dot tenure, over(grade) over(collgrad)
Consider this dot plot, which breaks
tenure down by two variables: the last
grade that one completed and whether
one is a college graduate. By default,
Stata shows all possible combinations
for these two variables. In most cases,
all combinations are possible, but not
in this case, and including them has
caused the labels for grade to overlap.
Uses nlsw.dta & scheme vg s2m
1 1 1 1 1 1 1 1 1 4
not college grad
1 1 1 1 1 1 1 1 1 4
college grad
0
2
4
6
8
mean of tenure
graph dot tenure, over(grade) over(collgrad) nofill
If you only want to display only the
combinations of the over() variables
that exist in the data, you can use the
nofill option.
Uses nlsw.dta & scheme vg s2m
4
6
7
1 9
not college grad
1 11
13
1 14
1 13
1 15
college grad
1 17
0
2
4
6
8
mean of tenure
6.2
Options for groups, over options
This section considers some of the options that can be used with the over() and
yvaroptions() options for customizing the display of the markers. We will focus on con-
trolling the spacing between the markers and the order in which the markers are displayed.
Other options that control the display of the
x
-axis (such as the labels) are covered in
Dot : Cat axis (202). For more information on the over() options covered in this section, see
the over subopts table in [ G ] graph dot . We first consider options that control the spacing
among the markers and then options that change the order in which the markers are sorted.
These examples begin with the vg blue scheme.
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