[英]Control alignment of two side-by-side plots in knitr
我不知道如何按照 knitr 图形手册第 2 页( http://yihui.name/knitr/demo/graphics/ )中的说明排列两个并排的图。 我使用以下 MWE,输出如下。 我希望它们按照两辆汽车图的手册中所示对齐(也在手册的第 2 页)。 pdf 是在 RStudio(Knit to PDF)中生成的。
---
title: "Untitled"
output: pdf_document
---
## R Markdown
```{r,echo=FALSE,out.width='.49\\linewidth', fig.width=3, fig.height=3}
barplot(1:4)
barplot(4:7)
```
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.