The static image below can’t show it, but when I hover over the interactive plot produced by girafe(ggobj = plt)
, all of the tooltips say 0
. How can I make them show the same value as x
?
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
library(ggplot2)
library(ggiraph)
plt <-
ChickWeight %>%
as_tibble() %>%
filter(Chick == 1) %>%
ggplot(
aes(
x = Time,
y = weight
)
) +
geom_line_interactive(
aes(
tooltip = Time
)
)
girafe(ggobj = plt)
Created on 2024-07-28 with reprex v2.0.2