Graphics Reference
In-Depth Information
twoway scatter propval100 rent700,
title("This is a title for the graph", box size(small))
msymbol(S)
Say that we want the symbols to be
displayed as squares. We can add
another option called msymbol(S) to
indicate that we want the marker
symbol to be displayed as a square ( S
for square). Adding one option at a
time is a common way to build a Stata
graph. In the next graph, we will
change gears and start building a new
graph to show other aspects of options.
Uses allstates.dta & scheme vg s2c
This is a title for the graph
0
10
20
30
40
% rents $700+/mo
twoway scatter propval100 rent700
Let's return to this simple scatterplot.
Say that we want the labels for the
x
-axistochangefrom010203040to
0 5 10 15 20 25 30 35 40.
Uses allstates.dta & scheme vg s2c
0
10
20
30
40
% rents $700+/mo
twoway scatter propval100 rent700, xlabel(0(5)40)
Here, we add the xlabel() option to
label the
x
-axis from 0 to 40,
incrementing by 5. But say that we
want the labels to be displayed larger.
Uses allstates.dta & scheme vg s2c
0
5
10
15
20
25
30
35
40
% rents $700+/mo
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