Graphics Reference
In-Depth Information
graph combine scat1 scat2
Using the graph combine command,
we can see these two scatterplots side
by side. In a sense, the
y
-axis is on a
different scale for these two graphs
since they are different variables.
However, in another sense, the scale for
the two
-axes is the same since they
are both measured in percents.
Uses allstates.dta & scheme vg s2c
y
20
40
60
80
100
20
40
60
80
100
Percent urban 1990
Percent urban 1990
graph combine scat1 scat2, ycommon
This graph is the same as the last one,
except that the
-axes are placed on a
common scale by using the ycommon
option. This makes it easy to compare
the two
y
y
-variables by forcing them to
be on the same metric. Note that the
ycommon option does not work when the
graphs have been made using different
kinds of commands, e.g., graph bar
and graph box .
Uses allstates.dta & scheme vg s2c
20
40
60
80
100
20
40
60
80
100
Percent urban 1990
Percent urban 1990
Let's look at more detailed examples showing how we can combine graphs and at options
we can use in creating the graphs. The next set of examples uses the sp2001ts data file.
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