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()
Run the code above in your browser using DataLab