Possible to have a chunk option to place all plots generated in the plot in a single figure environment, with individual plots as subfigures? Also, fig.cap should then support subfigure captions and a global figure caption.
Would be ace!
Thanks! I think I will do it.
documentation for fig.subcap (yihui/knitr#388)
closes #388: chunk option fig.subcap allows one to put figures in sub…
…figures if there are multiple of them
news for #388
Done. You can use fig.cap to specify the main caption, and fig.subcap to specify the captions for subfigures; see https://github.com/yihui/knitr-examples/blob/master/067-graphics-options.Rnw for example