title: Save .png by webshot in R
body: <p>I'm using webshot to save a png file from HTML :</p>
  
  <pre><code>p &lt;- plot_ly(plotly::wind, r = ~r, t = ~t) %&gt;% add_area(color = ~nms)%&gt;%
   layout(radialaxis = list(ticksuffix = "%"), orientation = 270)
  
  saveWidget(as.widget(p), "temp.html")
  webshot("temp.html",file = "temp.png",cliprect = "viewport")
  </code></pre>
  
  <p>This is giving me a plot like <a href="https://i.stack.imgur.com/eI4y6.png" rel="nofollow noreferrer">this</a>. It returns a small image in the upper left corner. What should I do to have a full-size image in a center?</p>