Enables the use of a highlight variable in plot_long_alluvial to enable easier reading of a standard Alluvial plot.

alluvial_fill_discrete(
  ...,
  h = c(0, 360) + 15,
  c = 100,
  l = 65,
  h.start = 0,
  direction = 1,
  na.value = "grey50",
  aesthetics = "fill",
  focus = 1
)

Arguments

...

Standard options to be passed on depending on scale type and

focus

The index of the factor that should be made lighter

Details

Modifies output of the standard discrete_scale palette so levels that are not defined by focus are made comparatively lighter.