plot.iNZightMTS: Plot multiple time series

Description Usage Arguments Value Author(s) Examples

View source: R/compareplot.R

Description

Plot a multiple time series object to compare several series

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## S3 method for class 'iNZightMTS'
plot(
  x,
  compare = TRUE,
  multiplicative = FALSE,
  ylab = "Value",
  xlab = "Date",
  title = "%var",
  t = 10,
  smoother = TRUE,
  aspect = 2,
  xlim = c(NA, NA),
  model.lim = NULL,
  ...
)

Arguments

x

Multiple time series object

compare

logical, if true, the series will be graphed in a single plot; otherwise graphed in individual rows

multiplicative

logical, if TRUE multiplicative series will be used; otherwise additive

ylab

y axis label

xlab

x axis label

title

the title for the plot

t

smoothing parameter

smoother

logical, if TRUE the smoother will be drawn

aspect

aspect ratio (width:height) for the time series

xlim

limits to control how much of series is shown

model.lim

time limits to use for modelling

...

additional arguments

Value

No return value, called for the side effect of drawing a plot.

Author(s)

Tom Elliott

Examples

1
2
3
tm <- iNZightTS(visitorsQ, var = 2:5)
plot(tm)
plot(tm, compare = FALSE)

iNZightTS documentation built on May 21, 2021, 9:07 a.m.