View source: R/identification.R
rmplot | R Documentation |
rmplot
generates a ggplot object showing a range-mean plot of a time series.
rmplot(y, n = 5)
y |
a vector or an array with the values of the time series. |
n |
size of the subsamples to calculate the mean and range, this parameter should be equals to the period of the time series. |
A ggplot
object.
# Easy example with AirPassengers time series rmplot(as.vector(AirPassengers), n = 12) rmplot(log(as.vector(AirPassengers)), n = 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.