malariagen_data.ag3.Ag3.plot_frequencies_time_series#
- Ag3.plot_frequencies_time_series(ds: Dataset, height: int | None = None, width: int | None = None, title: str | bool | None = True, show: bool = True, renderer: str | None = None, **kwargs) Figure | None #
Create a time series plot of variant frequencies using plotly.
Parameters#
- dsDataset
A dataset of variant frequencies, such as returned by snp_allele_frequencies_advanced(), aa_allele_frequencies_advanced() or gene_cnv_frequencies_advanced().
- heightint or None, optional
Plot height in pixels (px).
- widthint or None, optional
Plot width in pixels (px).
- titlestr or bool or None, optional, default: True
If True, attempt to use metadata from input dataset as a plot title. Otherwise, use supplied value as a title.
- 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.
- **kwargs
Passed through to px.line().
Returns#
- Figure or None
A plotly figure containing line graphs. The resulting figure will have one panel per cohort, grouped into columns by taxon, and grouped into rows by area. Markers and lines show frequencies of variants.