set_girafe_defaults | R Documentation |
girafe animation options (see girafe_defaults()
)
are automatically applied to every girafe you produce.
Use set_girafe_defaults()
to override them. Use init_girafe_defaults()
to re-init all values with the package defaults.
set_girafe_defaults(
fonts = NULL,
opts_sizing = NULL,
opts_tooltip = NULL,
opts_hover = NULL,
opts_hover_key = NULL,
opts_hover_inv = NULL,
opts_hover_theme = NULL,
opts_selection = NULL,
opts_selection_inv = NULL,
opts_selection_key = NULL,
opts_selection_theme = NULL,
opts_zoom = NULL,
opts_toolbar = NULL
)
fonts |
default values for |
opts_sizing |
default values for |
opts_tooltip |
default values for |
opts_hover |
default values for |
opts_hover_key |
default values for |
opts_hover_inv |
default values for |
opts_hover_theme |
default values for |
opts_selection |
default values for |
opts_selection_inv |
default values for |
opts_selection_key |
default values for |
opts_selection_theme |
default values for |
opts_zoom |
default values for |
opts_toolbar |
default values for |
Other girafe animation options:
girafe_defaults()
,
girafe_options()
,
init_girafe_defaults()
,
opts_hover()
,
opts_selection()
,
opts_sizing()
,
opts_toolbar()
,
opts_tooltip()
,
opts_zoom()
library(ggplot2)
set_girafe_defaults(
opts_hover = opts_hover(css = "r:10px;"),
opts_hover_inv = opts_hover_inv(),
opts_sizing = opts_sizing(rescale = FALSE, width = .8),
opts_tooltip = opts_tooltip(opacity = .7,
offx = 20, offy = -10,
use_fill = TRUE, use_stroke = TRUE,
delay_mouseout = 1000),
opts_toolbar = opts_toolbar(position = "top", saveaspng = FALSE),
opts_zoom = opts_zoom(min = .8, max = 7)
)
init_girafe_defaults()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.