gridsvgjs {interactiveDisplay} | R Documentation

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

    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)

    }

[Package interactiveDisplay version 1.18.0 Index]