Skip to content

'Index out of bound' when trying to 'View()' the plot associated list #317

@lucavd

Description

@lucavd

Hi @thomasp85 ,

I think there's a bug (maybe related to #217).

library(ggplot2)
library(patchwork)

p1 = ggplot(mtcars, aes(x = factor(cyl), y = mpg)) + geom_violin()
p2 = ggplot(mtcars, aes(x = factor(cyl), y = mpg)) + geom_boxplot()
p = p1 + p2
str(p, max.level = 1)

But

> View(p)
Error: Index out of bounds

I tried on different machines and different OS (even server) and different RStudio versions. Same error
patchwork version 1.1.2 from CRAN

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