Plot correlograms using plot.ly and several other options that differ theses plots from forecasts ACF and PACF.
corrgram(ts, lag.max = 12, type = "correlation", mode = "simple",
ci = 0.95, style = "plotly", knit = F)
An object of type ts
or xts
. The time series for which the plot must be constructed.
A numeric
value. The number of lags to be shown in the plot.
A character
. Can be either 'correlation' (for the ACF) or 'partial' (for the PACF).
A character
. Set this parameter to 'bartlett' if you want the variance to be calculated according to Bartlett's formula. Otherwise, it is going to be simply equal to 1/sqrt(N)
.
A numeric
value. The confidence interval to be shown in the plot.
A character
. Set this parameter to 'normal' if you want it made with ggplot2 or to 'plotly' if you want to be a plotly object.
A boolean
. If you're using this function to exhibit correlograms on a R dynamic report, set this parameter to true.
A plot and a vector
containing the correlations.