Make ‘ggplot’ Graphics Interactive

Travis-CI Build Status Build status version cranlogsActive

Overview

ggiraph is an htmlwidget and a ggplot2 extension. It lets ggplot graphics being animated.

Animation is made with ggplot geometries that can understand three arguments:

  • tooltip: column of dataset that contains tooltips to be displayed when mouse is over elements.
  • onclick: column of dataset that contains javascript function to be executed when elements are clicked.
  • data_id: column of dataset that contains id to be associated with elements.

If used within a shiny application, elements associated with an id (data_id) can be selected and manipulated on client and server sides.

Installation

github
# get development version
devtools::install_github('davidgohel/ggiraph')
cran
# get cran version
install.packages("ggiraph")