A Time Series Slice Plot in Stata

You can use a slice plot to separate a time series dataset into graph slices for comparison. To do this you use the sliceplot command in Stata.

To create a slice plot you first need to download the sliceplot command from the SSC, which you can do from within Stata with the following command:

ssc install sliceplot

To generate this graph in Stata, use the following commands:

use http://www.stata-press.com/data/r16/urates.dta, clear

format t %tmCCYY

label variable t "Time (in years)"

sliceplot line kentucky t, slices(4) ylabel(4(2)12)