【发布时间】:2020-05-01 05:48:03
【问题描述】:
如何减小 R-Markdown 块中的绘图大小?我想渲染一个.pdf,但是图太大了。
ggplot(data = test_datac,repr.plot.width = 7, repr.plot.height = 4) +
geom_line(size=0.5,mapping = aes(x = Period, y = gdpg))
我尝试添加repr.plot.width = 7、repr.plot.height = 4,但这并没有减小大小。
【问题讨论】:
-
在你的块选项中设置它,例如
{r, fig.height = 6, fig.width = 12}.
标签: r ggplot2 r-markdown