gridsvgjs {interactiveDisplay} | R Documentation |
This opens a shiny visualization application in the browser based on the submitted plot.
gridsvgjs(object, ...)
object |
data object to display |
... |
additional arguments passed to methods; currently unused. |
Any grid based plot. For example: a plot produced with lattice, ggplot2 or biobase libraries.
http://bioconductor.org/packages/2.13/bioc/html/interactiveDisplay.html
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) }