title: Controlling distance between two knitr side-by-side plots
body: <p>[Related to <a href="https://stackoverflow.com/q/37115276/2205465">Control alignment of two side-by-side plots in knitr</a> ]</p>
  
  <p>I cannot figure out how to arrange two side-by-side plots as explained in the knitr graphics manual page 2 (<a href="http://yihui.name/knitr/demo/graphics/" rel="nofollow noreferrer">http://yihui.name/knitr/demo/graphics/</a>). I use the following MWE and the output is below. <em>I would like to be able to control the distance between the plots</em> - the two plots are now too close to each other. The pdf is generated in RStudio (Knit to PDF).</p>
  
  <p>I have tried to tamper with for instance <code>par(mar = c(rep(5,4)))</code>, but without luck.</p>
  
  <pre><code>---
  title: "Untitled"
  output: pdf_document
  ---
  
  ## R Markdown
  
  ```{r,echo=FALSE,out.width='.49\\linewidth', fig.width=3, fig.height=3, fig.show='hold',fig.align='center'}
  
  barplot(1:4)
  barplot(4:7)
  
  ```
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/l6X72.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l6X72.png" alt="enter image description here"></a></p>