fortify.ts: fortify.ts

Description Usage Arguments Details Value Author(s) Examples

View source: R/tsPlot.r

Description

Fortify a ts object.

Usage

1
2
3
## S3 method for class 'ts'
fortify(model, data = NULL, name = as.character(m[[2]]),
  ...)

Arguments

model

A ts object.

data

A vector of the same length of x that specifies the time component of each element of x.

name

Character specifying the name of x if it is to be different than the variable being inputed.

...

Further arguments.

Details

Prepares a ts object for plotting with ggplot.

Value

data.frame for plotting with ggplot.

Author(s)

Jared P. Lander

Examples

1
fortify(sunspot.year)

useful documentation built on Oct. 8, 2018, 5:04 p.m.