Closed person-c closed 1 week ago
My gut feeling is that this is because patchwork allows for indexing into the plots in the patchwork using [[
but keeps the length method of the parent ggplot class to avoid messing more than necessary with it. This however means that patchwork objects breaks the promise that length returns the maximum number of elements indexable by [[
... let me see if there is a way around this
hmm... that assessment was wrong since I actually report the right length based on indexing behaviour
See my comment on the data.table issue. I don't think there is much I can do at this point
I was mistaken. Providing an as.list()
method for the patchwork object forced lapply()
into doing the right thing
see https://github.com/Rdatatable/data.table/issues/6395 and https://stackoverflow.com/questions/77085628/out-of-bound-error-when-trying-to-combine-plots-using-data-table