geom_lm_conf_int | R Documentation |
Drawing prediction interval for OLS linear model
geom_lm_conf_int(
mapping = NULL,
data = NULL,
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
...
)
... |
library(ggplot2)
ggplot(cars) + aes(x = speed, y = dist) +
geom_point() + geom_lm() + geom_lm_conf_int(level = .8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.