Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ggiraphOutput

Create a ggiraph output element


Description

Render a ggiraph within an application page.

Usage

ggiraphOutput(outputId, width = "100%", height = "500px")

Arguments

outputId

output variable to read the ggiraph from.

width

widget width

height

widget height

Examples

## Not run: 
if( require(shiny) && interactive() ){
  app_dir <- file.path( system.file(package = "ggiraph"), "examples/shiny/cars" )
  shinyAppDir(appDir = app_dir )
 }
if( require(shiny) && interactive() ){
  app_dir <- file.path( system.file(package = "ggiraph"), "examples/shiny/crimes" )
  shinyAppDir(appDir = app_dir )
}

## End(Not run)

ggiraph

Make 'ggplot2' Graphics Interactive

v0.7.10
GPL-3
Authors
David Gohel [aut, cre], Panagiotis Skintzos [aut], Mike Bostock [cph] (d3.js), Speros Kokenes [cph] (d3-lasso), Eric Shull [cph] (saveSvgAsPng js library), Eric Book [ctb] (hline and vline geoms)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.