ggiraph v0.6.1


Monthly downloads



Make 'ggplot2' Graphics Interactive

Create interactive 'ggplot2' graphics using 'htmlwidgets'.


ggiraph R package

Make ‘ggplot’ Graphics Interactive


ggiraph is an htmlwidget and a ggplot2 extension. It allows ggplot graphics to be 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.


Get development version on github
Get CRAN version

Functions in ggiraph

Name Description
drawDetails.interactive_points_grob interactive_points_grob drawing
geom_rect_interactive interactive rectangles
geom_segment_interactive Line interactive segments
geom_sf_interactive interactive sf objects
geom_text_interactive interactive textual annotations.
opts_hover hover effect settings
opts_selection selection effect settings
renderGirafe Reactive version of girafe
renderggiraph Reactive version of ggiraph object
annotate_interactive interactive annotations
drawDetails.interactive_path_grob interactive_path_grob drawing
ggiraph create a ggiraph object
ggiraphOutput Create a ggiraph output element
drawDetails.interactive_segments_grob interactive_segments_grob drawing
geom_bar_interactive interactive bars
geom_boxplot_interactive interactive boxplot
geom_vline_interactive Vertical interactive reference line
interactive_polyline_grob Generate an Interactive Grob Path
GeomInteractiveBoxplot ggproto classes for ggiraph
interactive_rect_grob Generate interactive grob rectangles
dsvg SVG Graphics Driver
dsvg_view Run plotting code and view svg in RStudio Viewer or web broswer.
drawDetails.interactive_polyline_grob interactive_polyline_grob drawing
geom_polygon_interactive interactive polygons
girafe create a girafe object
geom_point_interactive interactive points
girafeOutput Create a girafe output element
drawDetails.interactive_text_grob interactive_text_grob drawing
drawDetails.interactive_rect_grob interactive_rect_grob drawing
opts_sizing girafe sizing settings
geom_histogram_interactive interactive boxplot
opts_toolbar toolbar settings
geom_hline_interactive Horizontal interactive reference line
geom_map_interactive interactive polygons from a reference map.
geom_path_interactive interactive observations connections
interactive_segments_grob Generate interactive grob segments
girafe_options set girafe options
interactive_text_grob Generate interactive grob text
interactive_path_grob Generate interactive grob paths
interactive_points_grob Generate interactive grob points
interactive_polygon_grob Generate interactive grob polygons
opts_tooltip tooltip settings
opts_zoom zoom settings
drawDetails.interactive_polygon_grob interactive_polygon_grob drawing
No Results!

Vignettes of ggiraph

No Results!

Last month downloads


Type Package
License GPL-3
Copyright See file COPYRIGHTS.
Encoding UTF-8
LinkingTo Rcpp, gdtools
VignetteBuilder knitr
RoxygenNote 6.1.1
NeedsCompilation yes
Packaged 2019-04-06 16:34:18 UTC; davidgohel
Repository CRAN
Date/Publication 2019-04-09 17:12:46 UTC

Include our badge in your README