Learn R Programming

SCdeconR (version 1.0.0)

prop_barplot: Bar plot of cell type proportions across samples

Description

Bar plot of cell type proportions across samples

Usage

prop_barplot(prop, sort = TRUE, interactive = FALSE)

Value

a ggplot object or plotly object if interactive is set to TRUE

Arguments

prop

a matrix or data.frame of cell proportion values with rows representing cell types, columns representing samples.

sort

a logical value indicating whether to sort the samples based on cell type with highest median cell proportion across samples. Default to TRUE.

interactive

a logical value indicating whether to generate interactive plot. Default to FALSE.