Graphics Reference
In-Depth Information
graph box prev exp tenure ttl exp, nooutsides
Consider this box plot of three different
variables. These variables are shown
with different colors, and a legend is
used to identify the variables. We use
the nooutsides option to suppress the
display of outside values. For the rest
of the graphs in this section, there
would be a large number of outside
values, which would make the graphs
very cluttered, so we will include the
nooutsides option for each example.
Uses nlsw.dta & scheme vg brite
Prev. work exper.
Curr. work exper.
Tot. work exper.
excludes outside values
graph box wage, nooutsides over(occ7) asyvars
This is another example of where a
legend can arise in a Stata box plot by
using the asyvars option, which treats
an over() variable as though the levels
were different
-variables.
Uses nlsw.dta & scheme vg brite
y
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
excludes outside values
Unless otherwise mentioned, the legend() options described below work the same
whether the legend was derived from multiple
-variables or from an over() option that
was combined with the asyvars option. These examples use the vg teal scheme.
y
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