Graphics Reference
In-Depth Information
graph dot prev exp tenure ttl exp, over(occ7)
legend(position(12) rows(1))
We can put the legend at the top of the
graph with the legend(position(12))
option. The values you supply for
position() are similar to the numbers
on a clock face, where 12 o'clock is the
top, 6 o'clock is the bottom, and 0
represents the center of the clock face;
see Styles : Clockpos (330) for more
details. We also add the rows(1)
option to make the legend display as
one row.
Uses nlsw.dta & scheme vg rose
mean of prev_exp
mean of tenure
mean of ttl_exp
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
5
10
15
graph dot prev exp tenure ttl exp, over(occ7)
legend(cols(1) position(9))
Here, the legend is moved to the left
and displayed in a single column using
the legend(cols(1) position(9))
options.
Uses nlsw.dta & scheme vg rose
Prof
Mgmt
Sales
mean of prev_exp
mean of tenure
mean of ttl_exp
Cler.
Operat.
Labor
Other
0
5
10
15
6.5
Controlling the y-axis
This section describes options to customize the
y
-axis with dot plots. To be precise,
when Stata refers to the
-axis on a dot plot, it refers to the axis with the continuous vari-
able, which is placed on the bottom (where the
y
-axis would traditionally be placed). This
section emphasizes the features that are particularly relevant to dot plots. For more details,
see Options : Axis titles (254), Options : Axis labels (256), and Options : Axis scales (265). Also,
see [ G ] axis title options ,[ G ] axis label options , and [ G ] axis scale options . These
examples use the vg teal scheme.
x
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