View source: R/tseries-plots.R
plot_acf | R Documentation |
Plot Autocorrelation Function (ACF) or Partial Autocorrelation Function (PACF) Values
plot_acf(
.data,
.color = "black",
.conf_color = "blue",
.title = "ACF Plot",
.origin_width = 1,
.conf_width = 0.5
)
## S3 method for class 'data.frame'
plot_acf(
.data,
.color = "black",
.conf_color = "blue",
.title = "ACF Plot",
.origin_width = 1,
.conf_width = 0.5
)
plot_pacf(
.data,
.color = "black",
.conf_color = "blue",
.title = "PACF Plot",
.origin_width = 1,
.conf_width = 0.5
)
## S3 method for class 'data.frame'
plot_pacf(
.data,
.color = "black",
.conf_color = "blue",
.title = "PACF Plot",
.origin_width = 1,
.conf_width = 0.5
)
.data |
The output of |
.color |
(Optional) The color of the plot's bars. Default is black. |
.conf_color |
(Optional) The color of the confidence interval lines. Default is blue. |
.title |
(Optional) The title for the plot. |
.origin_width |
(Optional) The width of the line at |
.conf_width |
(Optional) The width of the confidence interval lines. |
A ggplot
object.
calculate_acf()
calculate_pacf()
library(tidytest)
x <- rnorm(100)
#> ACF
acf_tbl <- calculate_acf(x)
plot_acf(acf_tbl)
#> PACF
pacf_tbl <- calculate_pacf(x)
plot_pacf(pacf_tbl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.