plot cell type composition within each niche cluster
plotCTCompositionInNicheCluster(
gobject,
cell_type,
values = "prob",
spat_unit = "cell",
feat_type = "niche cluster",
normalization = c("by_niche_cluster", "by_cell_type", NULL),
show_plot = NULL,
return_plot = NULL,
save_plot = NULL,
save_param = list(),
default_save_name = "CellTypeCompositionInNicheCluster"
)
giotto object
the cell type column name in the metadata
name of the expression matrix stored probability of each cell assigned to each niche cluster
name of spatial unit niche stored cluster features
name of the feature type stored probability matrix
normalization method for the cell type composition
logical. show plot
logical. return ggplot object
logical. save the plot
list of saving parameters, see
showSaveParameters
default save name for saving, don't change, change save_name in save_param
ggplot
This function plots the cell type composition within each niche cluster