Graphics Reference
In-Depth Information
twoway scatter ownhome propval100
Since it can be cumbersome to type
graph twoway scatter , Stata allows
you to shorten this to twoway scatter .
Uses allstates.dta & scheme vg s2c
0
20
40
60
80
100
% homes cost $100K+
scatter ownhome propval100
In fact, some graph twoway commands
are so frequently used that Stata
permits you to omit the graph twoway ,
as we have done here, and just start the
command with scatter . While this
can save some typing, this can
sometimes conceal the fact that the
command is really a twoway graph and
that these are a special class of graphs.
For clarity, I will generally present
these graphs starting with twoway .
Uses allstates.dta & scheme vg s2c
0
20
40
60
80
100
% homes cost $100K+
twoway scatter ownhome propval100, msymbol(Sh)
You can control the marker symbol with
the msymbol() option. Here, we make
the symbols large, hollow squares. See
Options : Markers (235) for more details
about controlling the marker symbol,
size, and color, and see Styles : Symbols
(342) for the symbols you can select.
Uses allstates.dta & scheme vg s2c
0
20
40
60
80
100
% homes cost $100K+
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