prop_barplot: Bar plot of cell type proportions across samples

View source: R/deconvolution.R

prop_barplotR Documentation

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)

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.

Value

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


SCdeconR documentation built on May 29, 2024, 9:03 a.m.