plot.daily: Plot daily time series

Description Usage Arguments Details Author(s) Examples

View source: R/GenericFunctions.R

Description

Plotting output for objects of class "daily"

Usage

1
2
## S3 method for class 'daily'
plot(x, dy = TRUE, trend = FALSE, ...)

Arguments

x

Result of dsa() that will be plotted

dy

should dygraphs be used for plotting

trend

Boolean. Inclusion of a trend estimate.

...

Other plot parameters (only if dy=FALSE)

Details

The original series is plotted in black, the seasonally adjusted series is colored in red, and if trend=T, a blue trend line is added.

Author(s)

Daniel Ollech

Examples

1
2
3
x <- daily_sim(3)$original
## Not run: res<- dsa(x, fourier_number = 24, outlier.types="AO", reg.create=NULL, model=c(3,1,0))
## Not run: plot(res, dy=FALSE)

Example output

Registered S3 method overwritten by 'quantmod':
  method            from
  as.zoo.data.frame zoo 

dsa documentation built on June 21, 2021, 9:07 a.m.