Learn R Programming

⚠️There's a newer version (0.8.13) of this package.Take me there.

ggiraph R package

Make 'ggplot' Graphics Interactive

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")

Copy Link

Version

Install

install.packages('ggiraph')

Monthly Downloads

15,112

Version

0.3.2

License

GPL-3

Maintainer

David Gohel

Last Published

November 4th, 2016

Functions in ggiraph (0.3.2)

geom_boxplot_interactive

interactive boxplot
geom_path_interactive

interactive observations connections
drawDetails.interactive_text_grob

interactive_text_grob drawing
geom_map_interactive

interactive polygons from a reference map.
drawDetails.interactive_rect_grob

interactive_rect_grob drawing
drawDetails.interactive_polyline_grob

interactive_polyline_grob drawing
drawDetails.interactive_points_grob

interactive_points_grob drawing
geom_bar_interactive

interactive bars
drawDetails.interactive_polygon_grob

interactive_polygon_grob drawing
drawDetails.interactive_segments_grob

interactive_segments_grob drawing
ggiraph

ggiraph
geom_point_interactive

interactive points
geom_polygon_interactive

interactive polygons
interactive_points_grob

Generate interactive grob points
interactive_polygon_grob

Generate interactive grob polygons
geom_text_interactive

interactive textual annotations.
geom_rect_interactive

interactive rectangles
ggiraphOutput

Create a ggiraph output element
geom_segment_interactive

Line interactive segments
interactive_polyline_grob

Generate an Interactive Grob Path
interactive_text_grob

Generate interactive grob text
interactive_rect_grob

Generate interactive grob rectangles
renderggiraph

Reactive version of ggiraph object
interactive_segments_grob

Generate interactive grob segments