Re: [R] Pass additional arguments to do.call(grid.arrange, plots)

2015-02-16 Thread Rolf Turner
On 16/02/15 13:36, Bingzhang Chen wrote: Hi R users, I have a problem on how to pass an extra argument to do. call: The example codes are: # require(ggplot2) plots = lapply(1:5, function(.x) qplot(1:10,rnorm(10), main=paste(plot,.x)))

Re: [R] Pass additional arguments to do.call(grid.arrange, plots)

2015-02-15 Thread David Winsemius
On Feb 15, 2015, at 4:36 PM, Bingzhang Chen wrote: Hi R users, I have a problem on how to pass an extra argument to do. call: The example codes are: # require(ggplot2) plots = lapply(1:5, function(.x) qplot(1:10,rnorm(10),

[R] Pass additional arguments to do.call(grid.arrange, plots)

2015-02-15 Thread Bingzhang Chen
Hi R users, I have a problem on how to pass an extra argument to do. call: The example codes are: # require(ggplot2) plots = lapply(1:5, function(.x) qplot(1:10,rnorm(10), main=paste(plot,.x))) require(gridExtra) do.call(grid.arrange, plots)