mescla.plotting.diagrams.plot_reaction_departures

mescla.plotting.diagrams.plot_reaction_departures(table, ax=None, theme='light', threshold=0.1)[source]

Departure from the mixing prediction, per species: the one-panel reaction summary.

Sources to one side, sinks to the other, conservative species clustered at zero. The polarity is the whole content, so it is drawn with the diverging pair and a neutral midpoint rather than with categorical colours.

Parameters:
  • table (DataFrame) – From classify_source_sink().

  • threshold (float, default 0.10) – The conservative band, drawn so the reader can see the rule that produced the verdicts rather than having to trust it.

  • ax (Any)

  • theme (str | Theme)

Return type:

Any