corybrunson / ggalluvial

ggplot2 extension for alluvial plots
http://corybrunson.github.io/ggalluvial/
GNU General Public License v3.0
497 stars 34 forks source link

inherit parameters from other layers #7

Closed corybrunson closed 4 years ago

corybrunson commented 7 years ago

Ensure that, unless otherwise specified, each layer will inherit shared parameters from other layers in which they are assigned—e.g. na.rm, decreasing, reverse, and axis_width.

corybrunson commented 6 years ago

This looks impossible, but the underlying issue could be resolved by introducing a logical strata parameter for *_alluvium() and *_flow(), analogous to blocks in alluvial::alluvial(). This would need to not only add the stratum layer but recognize parameters intended for it rather than for the alluvium or flow layer, either by new syntax or by guesswork. If successful, it might also make sense to add parameters alluvia and flows to *_stratum()and alluvia to *_lodes().

corybrunson commented 5 years ago

This might also be done by adding a package option, as documented here, which would be set by the user per session.