library(ggvis)
mtcars %>%
ggvis(~wt, ~mpg) %>%
layer_points() %>%
layer_model_predictions(model = "lm", se = TRUE)
The above produces a scatter plot with a fitted regression line and 95% confidence limits on .
Question: How to draw a scatter plot with a fitted regression line and 95% prediction limits on ?