prop_barplot {SCdeconR}R 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


[Package SCdeconR version 1.0.0 Index]