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 March 31, 2023, 7:13 p.m.