Rmarkdown / knitr subfigure different figure sizes
问题 I am trying to achieve different heights and widths for subfigures in Rmarkdown. I was hoping that just providing fig.height and fig.width with a vector each would work, as this does seem to work for out.height and out.width --- title: "Untitled" output: pdf_document header-includes: - \usepackage{subfig} --- ```{r, echo = FALSE, fig.height = c(1,2,3), fig.width=c(1,1,1), fig.cap='Caption', fig.subcap=c('Subcaption 1', 'Subcaption 2', 'Subcaption 3')} library(ggplot2) df <- data.frame( x =