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

Michael Friendly friendly at yorku.ca
Thu Jun 20 14:32:18 CEST 2013

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 by side.
Thanks, Yihui.  I had simply copied that option from the 
corrplot-intro.Rmd example,
without fully understanding the implication.  Might be good to document 
this somewhere.

Michael Friendly     Email: friendly AT yorku DOT ca
Professor, Psychology Dept. & Chair, Quantitative Methods
York University      Voice: 416 736-2100 x66249 Fax: 416 736-5814
4700 Keele Street    Web:   http://www.datavis.ca
Toronto, ONT  M3J 1P3 CANADA

More information about the R-help mailing list