Learn R Programming

iNZightTS (version 1.5.9)

plot.iNZightMTS: Plot multiple time series

Description

Plot a multiple time series object to compare several series

Usage

# S3 method for 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,
  ...
)

Value

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

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

Author

Tom Elliott

Examples

Run this code
tm <- iNZightTS(visitorsQ, var = 2:5)
plot(tm)
plot(tm, compare = FALSE)

Run the code above in your browser using DataLab