Overview (TSPLOT command)

TSPLOT produces a plot of one or more time series or sequence variables. You can request natural log and differencing transformations to produce plots of transformed variables. Several plot formats are available.

Options

Modifying the Variables. You can request a natural log transformation of the variables using the LN subcommand and seasonal and nonseasonal differencing to any degree using the SDIFF and DIFF subcommands. With seasonal differencing, you can also specify the periodicity on the PERIOD subcommand.

Plot Format. With the FORMAT subcommand, you can fill in the space on one side of the plotted values on plots with one variable. You can also plot a reference line indicating the variable mean. For plots with two or more variables, you can specify whether you want to join the values for each observation with a vertical line. With the ID subcommand, you can label the horizontal axis with the values of a specified variable. You can mark the onset of an intervention variable on the plot with the MARK subcommand.

Split-File Processing. You can control how data that have been divided into subgroups by a SPLIT FILE command should be plotted using the SPLIT subcommand.

Subcommand Order

  • Subcommands can be specified in any order.

Syntax Rules

  • VARIABLES can be specified only once.
  • Other subcommands can be specified more than once, but only the last specification of each one is executed.

Operations

  • Subcommand specifications apply to all variables named on the TSPLOT command.
  • If the LN subcommand is specified, any differencing requested on that TSPLOT command is done on the log-transformed variables.
  • Split-file information is displayed as part of the subtitle, and transformation information is displayed as part of the footnote.

Limitations

  • Maximum of one VARIABLES subcommand. There is no limit on the number of variables named on the list.