I would like to make a clickable hyperlink in a tooltip text in ggplotly. The hyperlink does seem to appear in the tooltip, but it can't be clicked. Before I can click, the tooltip dissappears. How can I make the tooltip appear long enough for me to click the hyperlink?
Here's an example of what I mean:
mtcars$hyperlink <- "<a href='https://plot.ly/ggplot2/'>plotly ggplot2 website</a>"
p <- ggplot(mtcars, aes(wt, mpg, text = hyperlink)) +
geom_point()
ggplotly(p)
You will notice the unclickable hyperlink. Has anyone an idea about how to solve this?