Closed rsaporta closed 9 years ago
just
is not an argument of arrangeGrob
, so it considers it to be a grob (which it isn't), but the number of (assumed) grobs, 2, becomes incompatible with the widths (length 1, yielding errors 1 and 2). The third case fails not because of layout incompatibility, but because just = "bottom"
is not a grob.
The same issue will arise for any named argument that's not a grob, and not an argument of arrangeGrob. For instance, main
is no longer an argument, it's been replaced by top
for consistency with the others titles, bottom
, left
, right
.
Interesting, thank you for clarifying that. Out of curiosity, why did it used to work in previous versions?
just
used to be a valid argument (although it wasn't clear from the function definition) that was passed to grid.layout
. Now the layout is handled by gtable
, which doesn't support justification (you'd have to wrap the grob in a gTree for that).
that makes sense. Do you know off the top of your head which version I could install to use the old behavior? (Have some old code I simply need to rerun with new data). If not, I could go through the commits.
thanks
I'll give it a go, thanks again
cross post with ggplot2 mailing list
I'm experiencing similar issue as to what user in the ggplot2 mailing list indicates: Old code that used to run fine now throwing error
Error: nrow * ncol >= n is not TRUE
Original line of code - Throws Error
Add
ncol
explicitly, throws different errorChange nrow from 1 to 2, and no error. But also not the output expected
Thanks