knitr:几个带有副标题的图形,对齐问题

knitr:几个带有副标题的图形,对齐问题

这是一个最小的工作示例:

\documentclass{article}
\usepackage{subfig}
\begin{document}
<<echo=FALSE,out.width="0.49\\linewidth",fig.show="hold",fig.align="center",fig.cap="Some figures",fig.subcap=c("first","second","third","fourth")>>=
plot(1:10)
plot(2:12)
plot(3:13)
plot(4:14)
@
\end{document}

图形从页面右侧移开,但如果我删除 fig.subcap 选项,它们就会对齐。有没有办法在不破坏对齐的情况下将子标题添加到 3 个或更多图表中?

相关内容