ggAcf
take an ellipses argument, \dots, meant to pass
Other plotting parameters to affect the plot
I wasn't able to find much in the way of documentation. With some experimentation, though, it's not meant to be very fine grained.
The good news is that ggAcf
produces a ggplot
object. That is also the disappointing news. I suspect it is possible to edit a ggplot
object directly, I haven't attempted it, in favor of the crude overplotting for the blue bands shown below.
library(fpp2)
#> Registered S3 method overwritten by 'quantmod':
#> method from
#> as.zoo.data.frame zoo
#> ── Attaching packages ────────────────────────────────────────────── fpp2 2.4 ──
#> ✓ ggplot2 3.3.3 ✓ fma 2.4
#> ✓ forecast 8.14 ✓ expsmooth 2.3
#>
beer2 <- window(ausbeer, start=1992)
ggAcf(beer2, size = 2, color = "orange") +
geom_hline(yintercept = 0.24, size = 2, color = "blue", linetype = "3313") +
geom_hline(yintercept = -0.24, size = 2, color = "blue", linetype = "3313") +
theme_minimal()
