Using ggvis with knitr and rmarkdown

First Plot

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

Second Plot

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


Try the ggvis package in your browser

Any scripts or data that you put into this service are public.

ggvis documentation built on May 29, 2024, 1:12 a.m.