library(ggformula)
# Basic interactive plot
gf_point_interactive(mpg ~ wt, data = mtcars,
tooltip = ~ paste("Car:", rownames(mtcars))) |>
gf_girafe()
# With custom sizing
gf_histogram_interactive(~ mpg, data = mtcars,
tooltip = ~ paste("Count:", after_stat(count))) |>
gf_girafe(width_svg = 8, height_svg = 6)
Run the code above in your browser using DataLab