Graphics Reference
In-Depth Information
twoway (scatter faminc educ)
(scatter workers2 educ, yaxis(2)), ylabel(40(5)80, axis(1) )
ylabel() is really an overall option,
but Stata is willing to pretend that you
specified this option globally, as though
you had typed ylabel() as a global
option as specified in this example. To
make this clearer, we have added the
default axis(1) to ylabel() to
illustrate why this usage does not
change the second
-axis.
Uses allstatesdc.dta & scheme vg outc
y
9.5
10
10.5
11
average education level...
1979 Median Family Inc.
% HHs with 2+ workers
twoway (scatter faminc educ)
(scatter workers2 educ, yaxis(2)),
ytitle("Family income", axis(1)) ytitle("Two+ workers", axis(2))
These same rules apply to modifying
the axis titles and labeling. In this
example, we use the ytitle() option
to change the titles for the first and
second
-axes.
Uses allstatesdc.dta & scheme vg outc
y
9.5
10
10.5
11
average education level...
1979 Median Family Inc.
% HHs with 2+ workers
8.8
Graphing by groups
This section provides more details about repeating graphs using the by() option to
show separate graphs for each by-group. For more information, see [ G ] by option . For this
section, we will use the vg brite 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