Graphics Reference
In-Depth Information
graph twoway scatter propval100 popden
Here is a basic scatterplot. The variable
propval100 is placed on the
y
-axis, and
x
popden is placed on the
-axis. See
Twoway : Scatter (35) for more details
about these kinds of plots.
Uses allstates.dta & scheme vg s2c
0
2000
4000
6000
8000
10000
Pop/10 sq. miles
twoway scatter propval100 popden
We can start this command with just
twoway , and Stata understands that
this is shorthand for graph twoway .
Uses allstates.dta & scheme vg s2c
0
2000
4000
6000
8000
10000
Pop/10 sq. miles
twoway lfit propval100 popden
We can make a linear fit line ( lfit )
predicting propval100 from popden .
See Twoway : Fit (49) for more
information about these kinds of plots.
Uses allstates.dta & scheme vg s2c
0
2000
4000
6000
8000
10000
Pop/10 sq. miles
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