Graphics Reference
In-Depth Information
twoway kdensity
popk
The
twoway kdensity
command shows
a kernel-density plot and is useful for
examining the distribution of a single
variable. It can be overlaid with other
twoway plots; otherwise, the
kdensity
command would be preferable. See
Twoway : Distribution
(74) for more
details.
Uses allstates.dta & scheme vg s2c
0
5000
10000
15000
20000
25000
x
twoway function
y=normden(x), range(-4 4)
The
twoway function
command allows
us to graph an arbitrary function over a
range of values we specify. See
Twoway : Distribution
(74) for more
details.
Uses allstates.dta & scheme vg s2c
−4
−2
0
2
4
x
graph matrix
propval100 rent700 popden
We can use the
graph matrix
command to show a scatterplot matrix.
See
Matrix
(95) for more details.
Uses allstates.dta & scheme vg s2c
0
20
40
100
% homes
cost
$100K+
50
0
40
% rents
$700+/mo
20
0
10000
Pop/10
sq.
miles
5000
0
0
50
100
0
5000
10000
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.