First Plot

library(ggvis)
mtcars %>% ggvis(x = ~wt, y = ~mpg) %>% layer_points()

Second Plot

mtcars %>% ggvis(x = ~wt, y = ~mpg) %>%
  layer_points() %>%
  layer_smooths()


rstudio/ggvis documentation built on Feb. 5, 2024, 9:13 p.m.