KopfLab / ggstackplot

R package for stacked ggplots
https://ggstackplot.kopflab.org
Other
0 stars 0 forks source link

overlapping plots are not sized correctly #1

Closed sebkopf closed 1 year ago

sebkopf commented 1 year ago

When overlapping plots, they are not sized correctly, e.g. the below has plots 1 & 2 completely overlapping and plot 3 not at all and as a result plots 1 & 2 are much larger than plot 3

library(ggstackplot)
ggstackplot(
  mtcars,
  x = mpg,
  y = c(wt, qsec, drat),
  color = c("#E41A1C", "#377EB8", "#4DAF4A"),
  overlap = c(1, 0)
)

6db738be-a6bd-431a-9d90-dc5b171daa53