l_plot
methods for seasonally decomposed by loess time series objects (i.e. via stl)l_plot.stl.Rd
Creates a decomposed time series plot based on
objects of class stl
# S3 method for stl l_plot(x, y = NULL, 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, ...)
x | an |
---|---|
y |
|
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 |
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 |
title | an overall title for the entire display. If |
tk_title | provides an alternative window name to Tk's |
color | points colour of all time series.
If |
size | points size of all time series. Default value is 1. |
lcolor | line colour of all time series. If |
linewidth | line width of all time series (incl. original and decomposed components. Default is 1. |
linkingGroup | name of linking group.
If |
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 |
A structure of class "l_ts"
containing four loon plots each representing a part of the decomposition
by name: "original", "trend", "seasonal", and "remainder".
Other time series decomposition plotting functions: l_plot.decomposed.ts
,
l_plot_ts
Other two-dimensional plotting functions: l_plot.decomposed.ts
,
l_plot.default
,
l_plot.density
, l_plot
co2_stl <- stl(co2, "per") p <- l_plot(co2_stl, title = "Atmospheric carbon dioxide over Mauna Loa") # names of plots in the display names(p)#> [1] "original" "trend" "seasonal" "remainder"#> [1] "glyph" "itemLabel" "showItemLabels" "linkingGroup" #> [5] "linkingKey" "zoomX" "zoomY" "panX" #> [9] "panY" "deltaX" "deltaY" "xlabel" #> [13] "ylabel" "title" "showLabels" "showScales" #> [17] "swapAxes" "showGuides" "background" "foreground" #> [21] "guidesBackground" "guidelines" "minimumMargins" "labelMargins" #> [25] "scalesMargins" "x" "y" "xTemp" #> [29] "yTemp" "color" "selected" "active" #> [33] "size" "tag" "useLoonInspector" "selectBy" #> [37] "selectionLogic"# which can be set p$seasonal['color'] <- "steelblue"