A digression on sersets

The underlying data for plots in Stata's graphics are stored in sersets
and these data can be accessed using the serset command, see
help serset.

We can see a directory of all of the sersets underlying all of the graphs in
memory (we currently have two graphs), using serset dir. (Click the
command below).

. serset dir

Looking in the command window we see that we have two sersets, numbers 0 and
1, and that both sersets have 955 observations with the 0th serset
containing variables heatdd and tempjan and the 1st serset
containing variables cooldd and tempjuly.

Let's use the serset set command to make the 0th serset current, then
use the serset use command to use the data from the serset and make it
our current dataset.

. serset set 0

. serset use , clear

If we now list our data, we see that our dataset is now the data used to
create the heattdd vs. tempjan plot.

. list

We can do the same for the 1st serset, the one that holds the data for the
cooldd vs. tempjuly plot.

. serset set 1

. serset use , clear

. list

See, [P] sersets for managing sersets

<<< index