Learn R Programming

animint (version 2016.07.12)

animint2gist: Convert a list of ggplots to an interactive animation and post files as a gist

Description

Before using this function set your appropriate 'github.username' and 'github.password' options

Usage

animint2gist(plot.list, description = plot.list$title, browse = TRUE, ...)

Arguments

plot.list
a named list of ggplots and option lists.
description
Brief description of gist. This becomes the plot title on the bl.ocks/username page.
browse
logical. Prompt browser to view viz on http://bl.ocks.org
...
options passed onto animint2dir and gistr::gist_create

Examples

Run this code
## Not run: 
# 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")
# ## End(Not run)

Run the code above in your browser using DataLab