Learn R Programming

interactiveDisplay (version 1.10.2)

gridsvgjs: gridsvgjs: Open a Shiny Application for a Grid Plot

Description

This opens a shiny visualization application in the browser based on the submitted plot.

Usage

gridsvgjs(object, ...)

Arguments

object
data object to display
...
additional arguments passed to methods; currently unused.

Value

  • Any grid based plot. For example: a plot produced with lattice, ggplot2 or biobase libraries.

See Also

http://bioconductor.org/packages/2.13/bioc/html/interactiveDisplay.html

Examples

Run this code
if(interactive()) {

## Send a grid based plot to a browser as a Javascript interactive SVG

library(ggplot2)
data(mtcars)
qp <- qplot(mpg, data=mtcars, geom="density", fill=factor(cyl), alpha=I(.4))
gridsvgjs(qp)

}

Run the code above in your browser using DataLab