rmplot: Time Series Range-Mean Plot

View source: R/identification.R

rmplotR Documentation

Time Series Range-Mean Plot

Description

rmplot generates a ggplot object showing a range-mean plot of a time series.

Usage

rmplot(y, n = 5)

Arguments

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.

Value

A ggplot object.

Examples

# Easy example with AirPassengers time series
rmplot(as.vector(AirPassengers), n = 12)
rmplot(log(as.vector(AirPassengers)), n = 12)

danipequelangos/CBJTSA documentation built on Oct. 16, 2022, 7:19 p.m.