Skip to contents

Make an alluvial plot to visualize a change between two columns in a dataframe. It is currently used to visualize a cell type annotation in a single scRNA-Seq dataset.

Usage

plot_alluvial(df, column1, column2, colors = NULL)

Arguments

df

DATAFRAME: a dataframe, for instance sobj@meta.data (no default)

column1

CHARACTER: name of the first column (no default)

column2

CHARACTER: name of the second column (no default)

colors

NAMED VECTOR: a vector of colors, named by the unique values in column1 and column2 (default to the default ggplot palette)

Value

A ggplot object