Using an example from"https://plot.ly/r/"
library(plotly)
d <- diamonds[sample(nrow(diamonds), 1000), ]
p <- ggplot(data = d, aes(x = carat, y = price)) +
geom_point(aes(text = paste("Clarity:", clarity)), size = 4) +
geom_smooth(aes(colour = cut, fill = cut)) + facet_wrap(~ cut)
I am wondering how I could make plotly to show additonal (customized) information on the different facet labels "Fair", "Good", "Premium" and "Ideal" when moving the mouse over them.