malariagen_data.af1.Af1.plot_diversity_stats#

Af1.plot_diversity_stats(df_stats: DataFrame, color: str | None = None, bar_plot_height: int = 450, bar_width: int = 30, scatter_plot_height: int = 500, scatter_plot_width: int = 500, template: Literal['ggplot2', 'seaborn', 'simple_white', 'plotly', 'plotly_white', 'plotly_dark', 'presentation', 'xgridoff', 'ygridoff', 'gridon', 'none'] | None = 'plotly_white', plot_kwargs: Mapping | None = None, show: bool = True, renderer: str | None = None) Tuple[Figure, ...] | None#

Plot diversity summary statistics for multiple cohorts.

Parameters#

df_statsDataFrame

Output from diversity_stats().

colorstr or None, optional

Name of variable to use to color the markers.

bar_plot_heightint, optional, default: 450

Height of bar plots in pixels (px).

bar_widthint, optional, default: 30

Width per bar in pixels (px).

scatter_plot_heightint, optional, default: 500

Height of scatter plot in pixels (px).

scatter_plot_widthint, optional, default: 500

Width of scatter plot in pixels (px).

template{‘ggplot2’, ‘seaborn’, ‘simple_white’, ‘plotly’, ‘plotly_white’, ‘plotly_dark’, ‘presentation’, ‘xgridoff’, ‘ygridoff’, ‘gridon’, ‘none’} or None, optional, default: ‘plotly_white’

The figure template name (must be a key in plotly.io.templates).

plot_kwargsMapping or None, optional

Extra plotting parameters.

showbool, optional, default: True

If true, show the plot. If False, do not show the plot, but return the figure.

rendererstr or None, optional

The name of the renderer to use.

Returns#

tuple of Figure or None