Closed ericminikel closed 2 years ago
layout()
is for base R graphics but eulerr uses grid graphics, so I don't think you can use layout()
here and definitely not par(mfrow)
. Try gridExtra::grid.arrange()
or maybe the patchwork package will work too actually.
Plotting an euler object takes up the entire plot window, overriding any prior specification of a multi-panel layout. Example:
Intended behavior: scatter plot at left, euler diagram at right. Actual behavior: euler diagram fills whole window, scatter plot not visible.
Same occurs if layout is used instead of par(mfrow):
Is this the intended behavior? Perhaps an unavoidable consequence of using
grid::grid.layout
ineulerr:error_plot
? Apologies if this is a silly question, I looked through the docs and didn't see any obvious acknowledgment of whether this was known or intended. I'm trying to use an Euler diagram as one panel in a multi-panel figure for a scientific manuscript, and so far the workaround I have figured out is to go through the analog hole — writing out the plot as a png, then reading it back in and rendering the raster. Works well enough but obviously not elegant : )Thank you for this amazing package.