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.
我的问题是我如何能够为do.call函数添加更多参数。例如,我想用 绘制多面grid图grid.arrange,如何在命令中添加更多参数,例如ncol=3和?main="main title"do.call(grid.arrange,plots)
do.call
grid
grid.arrange
ncol=3
main="main title"
do.call(grid.arrange,plots)
考虑这个地块列表,
library(ggplot2) library(gridExtra) pl = replicate(5, qplot(1,1), simplify = FALSE)
您可以将其与要传递给的选项列表相结合do.call,
do.call(grid.arrange, c(pl, list(ncol=5, main="title")))