Learn R Programming

M4comp (version 0.0.1)

plot.M4ts: Plot an M4 time series

Description

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

Usage

"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

Run this code
plot(M4[[1]])

Run the code above in your browser using DataLab