pieCellTypesFromEnrichment
pieCellTypesFromEnrichment(
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_pie",
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
pie plot
This function generates a pie chart of cell types by frequency. These cell type resutls 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.