Re: [R] Can't get facet_grid_paginate() from ggforce to work.

2019-11-17 Thread Rolf Turner
Yep. That worked. Thanks very much Rui. cheers, Rolf On 18/11/19 2:12 AM, Rui Barradas wrote: Hello, Sorry, copy&paste did a poor job. The right code now. library(ggforce) X <- dget("testData.txt") nrows <- length(levels(X$Species)) ncols <- length(levels(X$LifeStage)) npages <- leng

Re: [R] Can't get facet_grid_paginate() from ggforce to work.

2019-11-17 Thread Rui Barradas
Hello, Sorry, copy&paste did a poor job. The right code now. library(ggforce) X <- dget("testData.txt") nrows <- length(levels(X$Species)) ncols <- length(levels(X$LifeStage)) npages <- length(levels(X$degC)) plotObj <- vector("list", npages) pdf(file = 'Rhelp_test.pdf') for(page in 1:npage

Re: [R] Can't get facet_grid_paginate() from ggforce to work.

2019-11-17 Thread Rui Barradas
Hello, I don't know why but use an explicit nrow = nrows with 'nrows' defined as nrows <- length(levels(X$Species)) It seems to work (remove the device pdf() code if it's more annoying than useful): nrows <- length(levels(X$Species)) ncols <- length(levels(X$LifeStage)) npages <- length(lev

[R] Can't get facet_grid_paginate() from ggforce to work.

2019-11-16 Thread Rolf Turner
Clearly there's something that I'm not understanding, but facet_grid_paginate() seems to be ignoring the "ncol" argument. Here's a reprex: library(ggforce) X <- dget("testData.txt") ncols <- length(levels(X$LifeStage)) npages <- length(levels(X$degC)) plotObj <- vector("list",npages) for(page