Generates a ggplot2
plot of the response variable encoded in the longZightAlluv
or longZightLasagna
object,
plots are returned allowing further customisation using standard ggplot2 geometries.
plot_long_alluvial(.data, ...) # S3 method for longZightAlluv plot_long_alluvial( .data, fillfunc = ggplot2::scale_fill_discrete(), highlight = NULL, focus = NULL ) # S3 method for longZightLasagna plot_long_alluvial( .data, alluvium = FALSE, fillfunc = ggplot2::scale_fill_discrete(), highlight = NULL, ... )
.data | A |
---|---|
fillfunc | The fill function to use for colouring Alluvial flows, defaults to |
highlight | Response level to be highlighted |
focus | Time period to use as focus/origin point (only if |
alluvium | Logical, if |
ggplot2
plot with the data represented as an Alluvial diagram
if (FALSE) { mydata %>% load_long_data(IDind, WAVE) %>% refactor_wave %>% recode_long_alluvial(A5E) %>% plot_long_alluvial }