First Plot

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

Second Plot

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


rpruim/ggvis2 documentation built on May 28, 2019, 2:34 a.m.