Skip to contents

Make ggplot2 Graphics Interactive

girafe()
Create a girafe object
interactive_parameters
Interactive parameters

Customize girafe animations

girafe_css()
CSS creation helper
opts_hover() opts_hover_inv() opts_hover_key() opts_hover_theme()
Hover effect settings
opts_selection() opts_selection_inv() opts_selection_key() opts_selection_theme()
Selection effect settings
opts_sizing()
Girafe sizing settings
opts_toolbar()
Toolbar settings
opts_tooltip()
Tooltip settings
opts_zoom()
Zoom settings
girafe_options()
Set girafe options
set_girafe_defaults()
Modify defaults girafe animation options
girafe_defaults()
Get girafe defaults formatting properties
init_girafe_defaults()
Re-init animation defaults options
girafe_css_bicolor()
Helper for a 'girafe' css string

Working with shiny

renderGirafe()
Reactive version of girafe
girafeOutput()
Create a girafe output element
run_girafe_example()
Run shiny examples and see corresponding code

Interactive geometries

geom_abline_interactive() geom_hline_interactive() geom_vline_interactive()
Create interactive reference lines
geom_bar_interactive() geom_col_interactive()
Create interactive bars
geom_bin_2d_interactive()
Create interactive heatmaps of 2d bin counts
geom_boxplot_interactive()
Create interactive boxplot
geom_contour_interactive() geom_contour_filled_interactive()
Create interactive 2d contours of a 3d surface
geom_count_interactive()
Create interactive point counts
geom_crossbar_interactive() geom_errorbar_interactive() geom_linerange_interactive() geom_pointrange_interactive()
Create interactive vertical intervals: lines, crossbars & errorbars
geom_density_2d_interactive() geom_density_2d_filled_interactive()
Create interactive contours of a 2d density estimate
geom_density_interactive()
Create interactive smoothed density estimates
geom_dotplot_interactive()
Create interactive dot plots
geom_errorbarh_interactive()
Create interactive horizontal error bars
geom_hex_interactive()
Create interactive hexagonal heatmaps
geom_freqpoly_interactive() geom_histogram_interactive()
Create interactive histograms and frequency polygons
geom_jitter_interactive()
Create interactive jittered points
geom_map_interactive()
Create interactive polygons from a reference map
geom_path_interactive() geom_line_interactive() geom_step_interactive()
Create interactive observations connections
geom_point_interactive()
Create interactive points
geom_polygon_interactive()
Create interactive polygons
geom_quantile_interactive()
Create interactive quantile regression
geom_raster_interactive()
Create interactive raster rectangles
geom_rect_interactive() geom_tile_interactive()
Create interactive rectangles
geom_ribbon_interactive() geom_area_interactive()
Create interactive ribbons and area plots
geom_curve_interactive() geom_segment_interactive()
Create interactive line segments and curves
geom_sf_interactive() geom_sf_label_interactive() geom_sf_text_interactive()
Create interactive sf objects
geom_smooth_interactive()
Create interactive smoothed conditional means
geom_spoke_interactive()
Create interactive line segments parameterised by location, direction and distance
geom_label_interactive() geom_text_interactive()
Create interactive textual annotations
geom_text_repel_interactive() geom_label_repel_interactive()
Create interactive repulsive textual annotations
geom_violin_interactive()
Create interactive violin plot

Interactive scales

scale_alpha_interactive() scale_alpha_continuous_interactive() scale_alpha_discrete_interactive() scale_alpha_binned_interactive() scale_alpha_ordinal_interactive() scale_alpha_date_interactive() scale_alpha_datetime_interactive()
Create interactive scales for alpha transparency
scale_colour_brewer_interactive() scale_color_brewer_interactive() scale_fill_brewer_interactive() scale_colour_distiller_interactive() scale_color_distiller_interactive() scale_fill_distiller_interactive() scale_colour_fermenter_interactive() scale_color_fermenter_interactive() scale_fill_fermenter_interactive()
Create interactive colorbrewer scales
scale_colour_continuous_interactive() scale_color_continuous_interactive() scale_fill_continuous_interactive() scale_colour_grey_interactive() scale_color_grey_interactive() scale_fill_grey_interactive() scale_colour_hue_interactive() scale_color_hue_interactive() scale_fill_hue_interactive() scale_colour_binned_interactive() scale_color_binned_interactive() scale_fill_binned_interactive() scale_colour_discrete_interactive() scale_color_discrete_interactive() scale_fill_discrete_interactive() scale_colour_date_interactive() scale_color_date_interactive() scale_fill_date_interactive() scale_colour_datetime_interactive() scale_color_datetime_interactive() scale_fill_datetime_interactive()
Create interactive colour scales
scale_colour_steps_interactive() scale_color_steps_interactive() scale_fill_steps_interactive() scale_colour_steps2_interactive() scale_color_steps2_interactive() scale_fill_steps2_interactive() scale_colour_stepsn_interactive() scale_color_stepsn_interactive() scale_fill_stepsn_interactive()
Create interactive binned gradient colour scales
scale_colour_gradient_interactive() scale_color_gradient_interactive() scale_fill_gradient_interactive() scale_colour_gradient2_interactive() scale_color_gradient2_interactive() scale_fill_gradient2_interactive() scale_colour_gradientn_interactive() scale_color_gradientn_interactive() scale_fill_gradientn_interactive()
Create interactive gradient colour scales
scale_linetype_interactive() scale_linetype_continuous_interactive() scale_linetype_discrete_interactive() scale_linetype_binned_interactive()
Create interactive scales for line patterns
scale_colour_manual_interactive() scale_color_manual_interactive() scale_fill_manual_interactive() scale_size_manual_interactive() scale_shape_manual_interactive() scale_linetype_manual_interactive() scale_alpha_manual_interactive() scale_discrete_manual_interactive()
Create your own interactive discrete scale
scale_shape_interactive() scale_shape_continuous_interactive() scale_shape_discrete_interactive() scale_shape_binned_interactive() scale_shape_ordinal_interactive()
Create interactive scales for shapes
scale_size_interactive() scale_size_area_interactive() scale_size_continuous_interactive() scale_size_discrete_interactive() scale_size_binned_interactive() scale_size_binned_area_interactive() scale_size_date_interactive() scale_size_datetime_interactive() scale_size_ordinal_interactive() scale_radius_interactive()
Create interactive scales for area or radius
scale_colour_viridis_d_interactive() scale_color_viridis_d_interactive() scale_fill_viridis_d_interactive() scale_colour_viridis_c_interactive() scale_color_viridis_c_interactive() scale_fill_viridis_c_interactive() scale_colour_viridis_b_interactive() scale_color_viridis_b_interactive() scale_fill_viridis_b_interactive() scale_colour_ordinal_interactive() scale_color_ordinal_interactive() scale_fill_ordinal_interactive()
Create interactive viridis colour scales
guide_bins_interactive()
Create interactive bins guide
guide_colourbar_interactive() guide_colorbar_interactive()
Create interactive continuous colour bar guide
guide_coloursteps_interactive() guide_colorsteps_interactive()
Create interactive colorsteps guide
guide_legend_interactive()
Create interactive legend guide

Interactive facets

facet_grid_interactive()
Create interactive grid facets
facet_wrap_interactive()
Create interactive wraped facets
labeller_interactive()
Construct interactive labelling specification for facet strips

Fonts

match_family()
Find best family match with systemfonts
validated_fonts()
List of validated default fonts
font_family_exists()
Check if font family exists.

Other interactive layers

annotate_interactive()
Create interactive annotations
annotation_raster_interactive()
Create interactive raster annotations
label_interactive()
Create an interactive label
element_line_interactive() element_rect_interactive() element_text_interactive()
Create interactive theme elements

Grobs

interactive_circle_grob()
Create interactive circles grob
interactive_curve_grob()
Create interactive curve grob
interactive_path_grob()
Create interactive path grob
interactive_points_grob()
Create interactive points grob
interactive_polygon_grob()
Create interactive polygon grob
interactive_polyline_grob() interactive_lines_grob()
Create interactive polyline grob
interactive_raster_grob()
Create interactive raster grob
interactive_rect_grob()
Create interactive rectangle grob
interactive_roundrect_grob()
Create interactive rectangle grob
interactive_segments_grob()
Create interactive segments grob
interactive_text_grob()
Create interactive text grob

Girafe graphic device

dsvg()
SVG Graphics Driver
dsvg_view()
Run plotting code and view svg in RStudio Viewer or web broswer.