title: Inserting hyperlinks into axis titles in R Plotly
body: <p>I'm hoping to embed hyperlinks into the x-axis of a plotly figure using R. A very nice example of what I'm trying to achieve is here:
  <a href="https://help.plot.ly/adding-HTML-and-links-to-charts/#links-text-and-html-in-graphs" rel="nofollow noreferrer">https://help.plot.ly/adding-HTML-and-links-to-charts/#links-text-and-html-in-graphs</a></p>
  
  <p>However, when I add links within the plot axis title annotations, it adds the text with the right formatting, but without the hyperlink itself (i.e., I can't navigate to the link within the plot).</p>
  
  <p>I've tried removing anything superfluous (i.e, removing the option to open the link in a different tab - target='_blank').</p>
  
  <p>Here is a example:</p>
  
  <pre class="lang-r prettyprint-override"><code>  library(plotly)
    data(mtcars)
    p &lt;- plot_ly() %&gt;%
      add_trace(data = mtcars, 
                x = ~cyl, y = ~mpg, 
                type = 'scatter',
                mode = 'lines') %&gt;%
      layout(autosize = T,
             title = "Test",
             xaxis = list(title = "&lt;a href = https://www.nytimes.com/&gt;The NY TIMES&lt;/a&gt;"))
  
  </code></pre>
  
  <p>I'm expecting this plot, except with an actual link that takes me to the site. Thanks very much for the help!</p>