Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 ggplot 中的多个图添加到我的 Latex 报告中。大多数地块具有不同的尺寸,因为有些需要是矩形的,而有些需要是方形的。为了塑造绘图,我一直在更改 ggsave 中的高度和宽度参数。但是,这也会改变字体大小。如何为所有绘图设置一致的字体大小,并且还能够分别更改每个绘图的宽度和高度?
我已经使用 theme(text = element_text(size=5)) 在图中指定了字体大小,但它似乎实际上并没有在图之间保持一致。