title: insert side by side png images using knitr
body: <p>How can I insert side by side png files from my computer into rstudio when creating an html document? </p>
  
  <p>The following works well (plots)</p>
  
  <pre><code>```{r, echo=FALSE,fig.width=4, fig.show='hold'}
   plot(cars)
  plot(rnorm(100))
  ```
  </code></pre>
  
  <p>But for images from a path, only the last image is displayed</p>
  
  <pre><code> ```{r fig.width=3, fig.show='hold'}
     library(png)
    img &lt;- readPNG("C:/path to my picture/picture.png")
    grid.raster(img)
  
    img2 &lt;- readPNG("C:/path to my picture/picture2.png")
    grid.raster(img2)
    ```
  </code></pre>