Black Lives Matter. Please consider donating to Black Girls Code today.

Hyperlink Y Axis Tick Text


I want to put a hyperlink on the Y axis tick text. I have tried replacing the relevant vector to include text, however this moves the Y axis label off the screen, the text appears hyperlinked (blue and underlined), but clicking here doesn’t lead to any result.

Any advice for making this happen?

Hey @parsa

Try something like this:

) %>% 
   yaxis = list(
      tickmode = "array", 
      tickvals = "1", 
      ticktext = "<a href=''>A</a>"

Hi @bcd

Perhaps you could take a look at the following Possible hyperlink bug?
I think there’s a reproducible bug associated with this approach.