Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

How to make hyperlink in tooltip text reachable in ggplotly?

$
0
0

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?


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>