animint2gist {animint2}R Documentation

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 bl.ocks.org

...

options passed onto animint2dir and gistr::gist_create

Examples

## 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)

[Package animint2 version 2020.9.18 Index]