Learn R Programming

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

ggiraph R package

Make ‘ggplot’ Graphics Interactive

Overview

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.

Installation

Get development version on github
devtools::install_github('davidgohel/ggiraph')
Get CRAN version
install.packages("ggiraph")

Copy Link

Version

Install

install.packages('ggiraph')

Monthly Downloads

11,958

Version

0.6.1

License

GPL-3

Maintainer

Last Published

April 9th, 2019

Functions in ggiraph (0.6.1)

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