Graphics Reference
In-Depth Information
graph use hist1.gph
At a later time (including after quitting
and restarting Stata), we can view the
saved graph with the graph use
command. If hist1.gph had been
stored in a different directory, we would
have to precede it with the directory
where it was saved or use the cd
command to change to that directory.
Uses allstates.dta & scheme vg s2c
40
60
80
100
Percent urban 1990
graph use hist1.gph, scheme(s1mono)
When we view the graph, we can add
the scheme() option to view the same
graph using a different scheme. Here,
we view the last graph but use the
s1mono scheme.
Uses allstates.dta & scheme s1mono
40
60
80
100
Percent urban 1990
twoway histogram propval100, name(hist2)
The name() option is much like the
saving() option, except that the graph
is saved in memory instead of on disk.
We can then view the graph later
within the same Stata session, but once
we quit Stata, the graph in memory
will be gone.
Uses allstates.dta & scheme vg s1c
0
20
40
60
80
% 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