Create interactive 'ggplot2' graphics using 'htmlwidgets'.
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.
devtools::install_github('davidgohel/ggiraph')
install.packages("ggiraph")
annotate_interactive
function.girafe()
and girafe_options()
to
be used instead of function ggiraph()
. It is more
convenient to use when customization is needed.geom_sf_interactive
geom_hline_interactive
and geom_vline_interactive
implemented by Eric Book.GeomInteractive
are exported.dep_dir
that controls the location of the output files.use_widget_size
and flexdashboard
. I hope this is the
last mention to theses in the NEWS file.flexdashboard
and width
are no more deprecated...use_widget_size
that force usage of htmlwidget size and
block the responsive behavior.flexdashboard
and width
are now deprecated and have no effectsflexdashboard
to make sure the graph fits available room.