Re: [R] knitr: side-by-side figures in R markdown

2013-06-20 Thread Michael Friendly
On 6/19/2013 5:31 PM, Yihui Xie wrote: You need to remove out.extra='style="display:block; margin: auto"'. In CSS, display:block; means this element stands in its own line, and no other elements can sit by its side. This is applied to individual images, so the two images will not be arranged side

Re: [R] knitr: side-by-side figures in R markdown

2013-06-19 Thread Yihui Xie
You need to remove out.extra='style="display:block; margin: auto"'. In CSS, display:block; means this element stands in its own line, and no other elements can sit by its side. This is applied to individual images, so the two images will not be arranged side by side. But you will lose the center a

[R] knitr: side-by-side figures in R markdown

2013-06-19 Thread Michael Friendly
I've read all the docs on knitr and some blogs on this topic, but can't figure out how to produce side-by-side figures in R markdown, except by composing a single figure in R with par(mfrow=c(1,2)). I know this can be done easily with the LaTeX engine, but why not with HTML output? A small te