powered by
ggplot2::ggplot
Attach confidence interval to ggplot2::ggplot
plot_confint( p, data = NULL, lower = "lower", upper = "upper", conf.int = TRUE, conf.int.geom = "line", conf.int.group = NULL, conf.int.colour = "#0000FF", conf.int.linetype = "none", conf.int.fill = "#000000", conf.int.alpha = 0.3 )
ggplot
ggplot2::ggplot instance
data contains lower and upper confidence intervals
column name for lower confidence interval
column name for upper confidence interval
Logical flag indicating whether to plot confidence intervals
geometric string for confidence interval. 'line' or 'step'
name of grouping variable for confidence intervals
line colour for confidence intervals
line type for confidence intervals
fill colour for confidence intervals
alpha for confidence intervals
d <- fortify(stats::acf(AirPassengers, plot = FALSE)) p <- ggplot(data = d, mapping = aes(x = Lag)) ggfortify:::plot_confint(p, data = d)
Run the code above in your browser using DataLab