Plot will look different depending on whetether the run() method was already called. When the plot is first run, the output field of the time series object changes from NULL to the output object from RDDemetra. Therefore, forcasts and other Plots are available.

Default plot method

The default S3 generic plot() shows the time series with the dygraphs package. The result is a zoomable representation of the series.

library(persephone)

obj <- perX13(AirPassengers, "RSA1")
plot(obj, drawPoints = TRUE)

In case the time series was already run, the plot will look slightly different and also show a forecast.

obj$run()
plot(obj, drawPoints=TRUE, showOutliers = FALSE)

plotSeasIrrCal

Seasonal-, irreguar components can be visualized with plotSeasIrrCal.

residual plot

plotResiduals() returns a plotly object.

plotResiduals(obj, which="acf")
#> Warning: `gather_()` was deprecated in tidyr 1.2.0.
#> Please use `gather()` instead.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.