title: Collapsing / hiding figures in R markdown
body: <p>In my rmarkdown document, I am able to show and hide code with the following - which creates a convenient button on the righthand side of the document before each block of code:</p>
  
  <pre><code>output: 
    html_document:
      code_folding: hide
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Kis9xm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Kis9xm.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/PTrMTm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PTrMTm.png" alt="enter image description here"></a></p>
  
  <p>Is there a similarly convenient method to hide tables or figures?  If so, please provide a reference as I have not been able to find any.  Otherwise a workaround would be appreciated, thank you!</p>