Skip to content

Instantly share code, notes, and snippets.

@cpsievert
Created May 21, 2014 23:03
Show Gist options
  • Save cpsievert/5d95e8ebc62a3c69b9a4 to your computer and use it in GitHub Desktop.
Save cpsievert/5d95e8ebc62a3c69b9a4 to your computer and use it in GitHub Desktop.
devtools::install_github("tdhock/animint", ref = "carson-test")
library(animint)
iris$id <- 1:nrow(iris)
viz <- list(petal=ggplot()+
geom_point(aes(Petal.Width, Petal.Length, fill=Species,
clickSelects=id), data=iris),
sepal=ggplot()+
geom_point(aes(Sepal.Width, Sepal.Length, fill=Species,
clickSelects=id), data=iris))
animint2gist(viz, description = "My animint plot")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment