partipy.barplot_meta_enrichment

partipy.barplot_meta_enrichment#

partipy.barplot_meta_enrichment(meta_enrich, meta='Meta', color_map=None)#

Generate a stacked bar plot showing metadata enrichment across archetypes.

Parameters:
  • meta_enrich (pd.DataFrame) – Output of meta_enrichment(), a DataFrame where rows are archetypes and columns are metadata categories, with values representing normalized enrichment scores.

  • meta (str, default "Meta") – Label to use for the metadata category legend in the plot. Default is “Meta”.

  • color_map (None | dict)

Returns:

pn.ggplot.ggplot A stacked bar plot of metadata enrichment per archetype.