l_plot_ts is a generic function for creating a decomposed time series plot. It is mainly used in l_plot.decomposed.ts and l_plot.stl

l_plot_ts(x, xlabel = NULL, ylabel = NULL, title = NULL,
  tk_title = NULL, color = NULL, size = 1, lcolor = NULL,
  linewidth = 1, linkingGroup = NULL, showScales = TRUE,
  showGuides = TRUE, showLabels = TRUE, ...)

Arguments

x

Either an stl object or a decomposed.ts object.

xlabel

the labels for the x axes. This is a length four character vector one for each: of the original time series, the trend component, the seasonality component, and the remainder. If of length 1, the label is repeated; if NULL, xlabel is "time".

ylabel

the labels for the vertical axes. This is a length four character vector one for each: of the original time series, the trend component, the seasonality component, and the remainder. If NULL, the default, ylabel will be c("data", "trend", "seasonality", "remainder"); if a character vector of length 1, the label is repeated four times.

title

an overall title for the entire display. If NULL (the default), the title will be "Seasonal Trend Analysis".

tk_title

provides an alternative window name to Tk's wm title. If NULL, stl will be used.

color

points colour of all time series. If NULL (the default) color will be l_getOption("foreground").

size

points size of all time series. Default value is 1.

lcolor

line colour of all time series. If NULL (the default) lcolor will be l_getOption("foreground").

linewidth

line width of all time series (incl. original and decomposed components. Default is 1.

linkingGroup

name of linking group. If NULL, one is created from the data name and class associated with stlOrDecomposedTS.

showScales

a logical as to whether to display the scales on all axes, default is TRUE.

showGuides

a logical as to whether to display background guide lines on all plots, default is TRUE.

showLabels

a logical as to whether to display axes labels on all plots, default is TRUE.

...

keyword value pairs passed off to l_plot() which constructs each loon scatterplot component.

Value

A structure of class "l_ts" containing four loon plots each representing a part of the decomposition by name: "original", "trend", "seasonal", and "remainder".

See also

l_plot.stl, l_plot.decomposed.ts, stl, or decompose.

Other time series decomposition plotting functions: l_plot.decomposed.ts, l_plot.stl