我希望生成两张不同尺寸的图片,但是将它们并排展示。这个有可能吗?
这样做可以实现,但需要图片大小相同:
```{r two_plots_same_size_side_by_side, fig.width=5, fig.height=5}
plot(...)
plot(...)
```
这个不起作用,但它本来可以,因为在Markdown中,只需要一个换行符分隔的行会出现在同一行。
```{r normal_plot, fig.width=5, fig.height=5}
plot(...)
```
```{r tall_plot, fig.width=5, fig.height=9}
plot(...)
```
display:block;
容器中。 - Brandon Bertelsen