title: Prevent/stop plots from wrapping in r markdown
body: <p>New to markdown here... Probably missing something simple... I'm trying to create a markdown document with plots generated in a for loop, but want to prevent wrapping the plots == i.e., keep a single column. </p>
  
  <p>This is similar to what appears here: <a href="https://stackoverflow.com/questions/12176296/knitr-how-to-prevent-text-wrapping-in-output">Knitr how to prevent text wrapping in output</a>. I can't get this to work for plots.</p>
  
  <p>Ideally there could be a line break between each. I found <a href="https://stackoverflow.com/questions/17178831/generate-markdown-comments-within-for-loop">this</a>, but I'm not familiar with pandoc and it's adding another layer to what I am trying to keep simple. Will go this route if it's the best solution, but I bet there is something simpler. Putting the plots in a table? Haven't figured that out yet...</p>
  
  <p>Example code (edited since first post):</p>
  
  <pre><code>```{r}
  value &lt;- rnorm(100)
  index &lt;- c(rep(1,20),rep(2,20),rep(3,20),rep(4,20),rep(5,20))
  group1 &lt;- 1:5
  group2 &lt;- 1:2
  df &lt;- as.data.frame(cbind(value,index,group1,group2))
  
  for (i in unique(df$group1)){
  par(mfrow=c(1,2))
  plot(value~index,data=subset(df,group1==i &amp; group2==1),type="l",pch=16,main=unique(paste("plot",i,"group=",group1)))
  plot(value~index,data=subset(df,group1==i &amp; group2==2),type="l",pch=16,main=unique(paste("plot",i,"group=",group2)))
  box("outer")
  }
  ```
  </code></pre>