plotCellTypesFromEnrichment
plotCellTypesFromEnrichment(
gobject = NULL,
spat_unit = NULL,
feat_type = NULL,
enrichment_name = "PAGE_z_score",
title = NULL,
save_param = list(),
default_save_name = "cell_types_from_enrichment",
save_plot = NULL,
show_plot = NULL,
return_plot = NULL
)
Giotto Object
spatial unit in which the enrichment information is stored
feature type for which the enrichment information was calculated
name of the spatial enrichment i.e. output from GiottoClass::list_spatial_enrichment_names() Default value is "PAGE_Z_score"
Title of the generated plot. Default `paste0(spat_unit,"cell types (maximum", enrichment_name, ")")`
list of saving parameters, see
showSaveParameters
default save name for saving, don't change, change save_name in save_param
logical. save the plot
logical. show plot
logical. return ggplot object
plot
This function generates a bar plot of cell types vs the frequency of that cell type in the data. These cell type results are based on the provided `enrichment_name`, and will be determined by the maximum value of the z-score or p-value for a given cell or annotation.