title: How to to insert R (interactive or not) graphics in the tooltips of a ggiraph?
body: <p>I'd like ultimately to insert R (interactive or not) graphics in the tooltips of a ggiraph.
  Using an iframe as I successfully did before with leaflet, it would look like this:</p>
  <pre><code>library(ggplot2)
  library(ggiraph)
  library(htmltools)
  
  p &lt;- {ggplot() + 
    aes(1,1, tooltip = &quot;blabla&quot;) +
    geom_point_interactive()} %&gt;% 
    girafe(ggobj = .)
  
  save_html(p, file = &quot;test.html&quot;) # I would use a loop to save many different graphs at the same time
  
  {ggplot() + 
      aes(1,1, tooltip = HTML(&quot;&lt;iframe src='test.html' frameborder=0 width=300 height=300&gt;&lt;/iframe&gt;&quot;)) +
      geom_point_interactive()} %&gt;% 
    girafe(ggobj = .)
  </code></pre>
  <p>Unfortunately, I came with somewhat of a bug. Let's try:</p>
  <pre><code>{ggplot() + 
      aes(1,1, tooltip = HTML(&quot;&lt;iframe src='https://stackoverflow.com' frameborder=0 width=300 height=300&gt;&lt;/iframe&gt;&quot;)) +
      geom_point_interactive()} %&gt;% 
    girafe(ggobj = .)
  </code></pre>
  <p>In Firefox, it gives just a black square and in RStudio IDE it unexpectedly opens the site in a browser on mouse hover.
  <a href="https://i.stack.imgur.com/Svwsx.png" rel="nofollow noreferrer">black square tooltip</a></p>
  <p>So I've got 2 questions:</p>
  <ul>
  <li>Why iframes are not working inside a ggiraph tooltip?</li>
  <li>Do you have any idea (it can be something else than iframes, of course, and hopefully more elegant) to insert R (interactive or not) graphics in the tooltips of a ggiraph (without shiny)?</li>
  </ul>