Graphics Reference
In-Depth Information
twoway histogram grade, discrete width(2)
We add the width() option, and the
bars have a width of 2.
Uses nlsw.dta & scheme vg s1m
5
10
15
20
current grade completed
We will now consider kernel-density plots that can be created using twoway kdensity .
For more details, see [ G ] graph twoway kdensity . As with histograms, if you are not going
to combine the kernel-density plot with other twoway plots, and sometimes even when you
are, the kdensity command is preferable to twoway kdensity . We will explore a handful
of options that are useful for controlling the display of these graphs. These graphs will use
the vg s2c scheme.
twoway kdensity ttl exp
Here is a kernel-density plot of total
work experience. We could have added
the horizontal option to display the
graph as a horizontal plot, but this
option is not shown.
Uses nlsw.dta & scheme vg s2c
0
10
20
30
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