Is it possible to plot a scatterplot with a smooth curve and confidence interval using rcharts?
I can do it with ggvis or ggplot2 but I think rcharts graphics look better in general.
This is an example with ggvis
library(ggvis)
mtcars %>%
ggvis(~wt, ~mpg) %>%
layer_points() %>%
layer_model_predictions(model = "lm", se = TRUE)
and this with ggplot2
library(ggplot2)
c <- ggplot(mtcars, aes(wt, mpg))
c + stat_smooth() + geom_point()
Thanks!