Plot Alluvial Plot
AlluviaPlot(
cellmeta,
by,
fill,
colors = NULL,
bar.width = 0.5,
legend.ncol = 1
)
a data frame containing the cell metadata.
a character string specifying the column name in cellmeta
which will be used to group the cells.
a character string specifying the column name in cellmeta
which will be used to fill the plot.
(optional) vector of colours to use for filling the plot. If not specified, the default colour scheme will be used.
a numeric value between 0 and 1 specifying the width of the bars in the plot.
an integer specifying the number of columns in the legend.
A ggplot object representing an alluvial plot.
https://stackoverflow.com/questions/73372641/shaded-area-between-bars-using-ggplot2
AlluviaPlot(mtcars, "cyl", "gear")
#> Warning: Returning more (or less) than 1 row per `summarise()` group was deprecated in
#> dplyr 1.1.0.
#> ℹ Please use `reframe()` instead.
#> ℹ When switching from `summarise()` to `reframe()`, remember that `reframe()`
#> always returns an ungrouped data frame and adjust accordingly.
#> ℹ The deprecated feature was likely used in the ProjectSVR package.
#> Please report the issue at <https://github.com/JarningGau/ProjectSVR/issues>.