Learn R Programming

dsa (version 1.0.12)

plot.daily: Plot daily time series

Description

Plotting output for objects of class "daily"

Usage

# S3 method for 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.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab