title: Is there a way to add legend next to a dygraph in R, not exactly on the plot?
body: <p>I'vw plotted a dygraph using a <code>dygraph</code> function from a <a href="http://rstudio.github.io/dygraphs/" rel="nofollow noreferrer">dygraphs</a> R package. I wonder is there a way to put legend next to the plot, not exactly on it like it is done by default...</p>
  
  <p>Code to reproduce this dygraph is below:</p>
  
  <pre><code>library(archivist)
  library(dplyr)
  library(devtools)
  devtools::install_github("rstudio/dygraphs")
  library(dygraphs)
  seriesReactive &lt;- loadFromGithubRepo( "db914a43536d4d3f00cf3df8bf236b4a", user= "MarcinKosinski", repo="Museum", value = TRUE)
  dygraph(seriesReactive, main = "Dzienna proporcja kliknięć do odsłon dla danych struktur", ylab = "Proporcja") %&gt;% 
      dyRangeSelector()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/dLhh8.jpg" alt="enter image description here"></p>