thomasp85 / grid

personal devel version of grid
15 stars 4 forks source link

'x', 'y', 'width', and 'height' must all be units of length 1 #19

Open chrarnold opened 3 years ago

chrarnold commented 3 years ago

I am receiving the following error for two ggplots, and I can't figure out why. I am using patchwork version ‘1.1.1’: > (gA3 | gB3 ) Error in valid.viewport(x, y, width, height, just, gp, clip, xscale, yscale, : 'x', 'y', 'width', and 'height' must all be units of length 1

It works with (ggplot() + geom_blank() | ggplot() + geom_blank() ), so must be specific to the two plots.

I attach an rds file with the two plots, which contains a list (say list.l ) with the two ggplots, so the following would reproduce the problem: ( list.l[[1]] | list.l[[2]] )

When trying this with an older 1.0.0 version, I receive the following error: > (gA3 | gB3 ) Error in identicalUnits(x) : old version of unit class is no longer allowed

The rds file can be downloaded here