Open mstone-modulus opened 2 years ago
edit: Casting to ggplot
appears to solve this. Is there any reason why this might present an issue in practice?
as.ggplot(p1) + as.ggplot(p2)
edit: Casting to
ggplot
appears to solve this. Is there any reason why this might present an issue in practice?
Hi,
Would it be possible to support composing figures produced via
autoplot()
with patchwork?Currently, attempting to combine figures results in the following error:
I've found that I can use
ggcyto_arrange()
andgridExtra
as a workaround when applyingautoplot()
toGatingHierarchy
objects. For example, when wishing to view multiple gates across all samples in aGatingSet
.However, I can't use this approach when applying
autoplot()
toflowFrame
objects (e.g. when replicating the 1D and 2D gating plots in the auto gating demo).From what I can tell, this is because
ggcyto_arrange()
requires aggcyto_GatingLayout
, whichautoplot()
returns when applied to aGatingSet
but not when applied to aflowFrame
.Would it be possible to make the return type of
autoplot()
consistent across inputs? And is there a straightforward way to cast a list ofggcyto_flowSet
objects toggcyto_GatingLayout
? I thought supporting patchwork might be the easiest way to support this kind of figure composition in the long run, but I'm happy to continue using thegridExtra
workaround until it can be implemented.Thanks!
Matt