plot_confint | R Documentation |
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
)
p |
|
data |
data contains lower and upper confidence intervals |
lower |
column name for lower confidence interval |
upper |
column name for upper confidence interval |
conf.int |
Logical flag indicating whether to plot confidence intervals |
conf.int.geom |
geometric string for confidence interval. 'line' or 'step' |
conf.int.group |
name of grouping variable for confidence intervals |
conf.int.colour |
line colour for confidence intervals |
conf.int.linetype |
line type for confidence intervals |
conf.int.fill |
fill colour for confidence intervals |
conf.int.alpha |
alpha for confidence intervals |
ggplot
d <- fortify(stats::acf(AirPassengers, plot = FALSE))
p <- ggplot(data = d, mapping = aes(x = Lag))
ggfortify:::plot_confint(p, data = d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.