In a histogram ggplotly object, how can I convert the tooltip stat
variable to sentence case?
library(palmerpenguins)
library(tidyverse)
plotly::ggplotly(
penguins %>%
rename_with(~snakecase::to_sentence_case(.x)) %>%
ggplot() +
geom_histogram(aes(x = `Body mass g`))
)