Skip to content

Error in valid.viewport: 'x', 'y', 'width', and 'height' must all be units of length 1 #277

Description

@chrarnold

Hi, with R 3.6 I get the following error when plotting two ggplots for patchwork 1.1.1:

`g1 | g2

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`

Plotting them individually works just fine, just the combination via patchwork does not. For other plots, patchwork works.

I saved both plots in R in a variable and then exported as rds for reproducibility. I zipped them and put them here (uploading here didnt work due to their size):
https://www.dropbox.com/s/7xwcddmdcf118h3/patchwork_bug.zip?dl=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions