title: Web Scrape an Image with rvest R
body: <p>I'm having a problem when trying to scrape an image from <a href="https://covid-19vis.cmm.uchile.cl/chart" rel="nofollow noreferrer">this page</a>. My code is as follow:</p>
  <pre><code>library(rvest)
  
  url &lt;- read_html(&quot;https://covid-19vis.cmm.uchile.cl/chart&quot;)
  
  m &lt;- '/html/body/div/div/div[4]/main/div/div/div/div/div/div[2]/div[1]'
  
  grafico_cmm &lt;- html_node(url, xpath = m) %&gt;% html_attr('src')
  
  
  
  </code></pre>
  <p>When I run the above code, the result is NA. Does someone know how can I scrape the plot or maybe the data from the page?</p>
  <p><a href="https://i.stack.imgur.com/tRCj9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tRCj9.png" alt="enter image description here" /></a></p>
  <p>Thanks a lot</p>