Knitr:将R chunk figure标题旋转90度内联Latex

时间:2015-07-23 20:19:32

标签: r latex knitr captions

这是我演示我不能做的代码。我使用R块来制作一个数字并使用out.extra =' angle = 90'使图形在页面上横向移动。现在我如何让我的标题侧身呢?

\documentclass{article}
\usepackage{subcaption} 
\begin{document}

<<test-plot,echo=FALSE,fig.cap="I would like to be posted sideways under figure, NOT HERE",out.extra='angle=90'>>=
plot(1)        
abline(0, 1)    
plot(rnorm(10)) 
for(i in 1:10) {
    abline(v = i, lty = 2)
}
@
\end{document}

0 个答案:

没有答案