I´ve gone thourgh some exemples but couldn´t fix the hover text
Here is a minimal exemple:
library(ggplot2)
library(plotly)
newhovertext=paste0(iris$Species,"<br>",iris$Sepal.Width)
g <- ggplot(iris,aes(x=Species,y=Sepal.Width,label=newhovertext)) +
geom_boxplot(alpha=0.5)
plotly::ggplotly(g,tooltip=label)
applying the above code will result in the following image:
I can´t display the plant names in the hover text, would appreciate some help