as.vega: Coerce an ggvis object to a vega list.

Description Usage Arguments Value

View source: R/vega.R

Description

This generic function powers the coercion of ggvis objects to vega compatible data structures.

Usage

1
2
3
4
as.vega(x, ...)

## S3 method for class 'ggvis'
as.vega(x, session = NULL, dynamic = FALSE, ...)

Arguments

x

an object to convert to vega

session

a session object from shiny

dynamic

whether to generate dynamic or static spec

Value

a list. When converted to JSON, will be the type of structure that vega expects.


ggvis documentation built on May 19, 2017, 8:26 p.m.

Search within the ggvis package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.