You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to use ggnewscale to have different fills for flows and strata, then one of them will not show up. (This does not seem to happen with geom_alluvium, only geom_flow.)
Hi @mdhall272, this is an interesting issue, thanks. I can reproduce the problem, and i see that it's not an issue of where data is specified (as i thought might be based on the {ggnewscale} examples). I'll have a closer look ASAP, but that might not be this or next week.
Description of the issue
If you try to use ggnewscale to have different fills for flows and strata, then one of them will not show up. (This does not seem to happen with
geom_alluvium
, onlygeom_flow
.)Reproducible example
Adapted from https://www.r-bloggers.com/2022/10/how-to-create-a-ggalluvial-plot-in-r/:
But now suppose we want to use ggnewscale to use different fill scales for the stratum and the flow:
The flow fills do not show up. Alternatively, if you do this in the opposite order:
The strata fills do not show up.
I'm aware that the bug could easily be in ggnewscale and this request may be a bit above and beyond the call of duty!
The text was updated successfully, but these errors were encountered: