Barplot of cluster enrichment in a categorical feature
barplot_cluster.Rd
Produce barplots (1 for each cluster) of distribution of cells associated with the values of the selected feature. A png figure for each cluster is saved in dir_out.
Usage
barplot_cluster(
scMuffinList = NULL,
feature_name = NULL,
feature_id = NULL,
partition_id = NULL,
dir_out = "./",
only_pos_nes = TRUE,
cex.axis = 0.8,
p.type = c("p", "p_adj"),
width = 180,
height = 180,
units = "mm",
res = 300,
legend.pos = "right"
)
Arguments
- scMuffinList
scMuffinList object
- feature_name
name of the features to be used.
- feature_id
identifier of the feature to be used.
- partition_id
one among the partitions
- dir_out
string, output directory
- only_pos_nes
whether to consider only positive enrichments
- cex.axis
cex.axis
- p.type
p for nominal p-value or p_adj for BH FDR.
- width
image width
- height
image height
- units
image units
- res
image resolution
- legend.pos
position of barplot legend