In a histogram ggplotly object, how can I convert the tooltip `stat` variable to sentence case?

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`))
  )

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.