iris %>%
add_tooltip_text() %>%
head(1)
iris %>%
add_tooltip_text(Species, tidyselect::contains("Sepal")) %>%
head(1)
library(snakecase)
iris %>%
add_tooltip_text(titles = ~ to_sentence_case(.x)) %>%
head(1)
iris %>%
add_tooltip_text() %>%
gg_point(x = Sepal.Width,
y = Sepal.Length,
col = Species,
text = text,
theme = gg_theme(text_family = "helvetica")) %>%
plotly::ggplotly(tooltip = "text")
Run the code above in your browser using DataLab