seasonal PackageInbuilt seasonal functions
seasonalview create a shiny app using the which has a graph made via dygraphs package.
library(dygraphs)
dataplot<-cbind(trend=m[["data"]][,"trend"], AirPassengers)
p <- dygraph(dataplot)
p <- dygraphs::dyOptions(p, gridLineColor = "#E1E5EA", axisLineColor = "#303030", drawPoints
=TRUE, strokeWidth = 2, colors = c("blue","red"))%>% dyRangeSelector()
pYou can compare this to the
forecastYou can use the autoplot function to produce a ggplot object of their equivalent Acf, Pacf, Ccf, taperedacf and taperedpacf functions.
Taken from page 11 of https://cran.r-project.org/web/packages/forecast/forecast.pdf
| x |
|---|
| 88 |
| 84 |
| 85 |
| 85 |
| 84 |
| 85 |
You can use the inbuilt R plots or ggplots using autoplot.
autoplot function Arww<-Arima(WWWusage, order=c(3,1,0))
Arww<-forecast(Arww,h=50)
autoplot(Arww, colour="red", alpha = 0.5, xlab = "Time", ylab = "WWWusage")This article also shows time series plotting
autoplot from ggfortifyggfortify is Data Visualization Tools for Statistical Analysis Results https://cran.r-project.org/web/packages/ggfortify/ggfortify.pdf. The package offers a single plotting interface for these analysis results and plots in a unified style using ggplot2.
Data heads
| famib | famit |
|---|---|
| 44 | 116 |
| 55 | 142 |
| 35 | 180 |
| 54 | 207 |
| 46 | 120 |
| 88 | 133 |
Loading required package: ggplot2