title: R forceNetwork - how do I keep the legend in the top left corner when zooming is enabled?
body: <p>Hoping there is a solution to this. I would like to enable the zoom options in the forceNetwork function of the networkD3 package, and force the legend to remain in the top left corner when zooming in and out. In the example below, if you zoom in and out the legend does not remain in the top left corner. I have a similar network in an R Shiny application using my own dataset. Does anyone know how to do this?</p>
  <pre class="lang-r prettyprint-override"><code>library(networkD3)
  
  data(MisLinks)
  data(MisNodes)
  
  # Create graph
  forceNetwork(Links = MisLinks, Nodes = MisNodes, Source = &quot;source&quot;,
               Target = &quot;target&quot;, Value = &quot;value&quot;, NodeID = &quot;name&quot;,
               Group = &quot;group&quot;, opacity = 1, zoom = T, bounded = F,legend = T)
  </code></pre>