plot.M4ts: Plot an M4 time series

Description Usage Arguments Value Examples

View source: R/m4functions.R

Description

plot.M4ts plots a time series from the M4 competition data set.

Usage

1
2
3
4
## S3 method for class 'M4ts'
plot(x, xlim = c(tsp(x$past)[1], tsp(x$future)[2]),
  ylim = range(x$past, x$future), main = x$id, xlab = "",
  ylab = x$units, ...)

Arguments

x

an M4ts object

xlim

Limits on x-axis

ylim

Limits on y-axis

main

Main title

xlab

Label on x-axis

ylab

Label on y-axis

...

Other plotting arguments

Value

None. The function produces a time series plot of the M4ts object x.

Examples

1
plot(M4[[1]])

Example output



M4comp documentation built on May 29, 2017, 11:19 p.m.