animint2gist: Convert a list of ggplots to an interactive animation and...

Description Usage Arguments Examples

View source: R/gist.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)

tdhock/animint documentation built on July 27, 2019, 5:57 a.m.