cascade.plot.interactive_heatmap

cascade.plot.interactive_heatmap(data, row_clust='auto', col_clust='auto', row_margin=0.2, col_margin=0.2, height=800, width=800, highlights=None, **kwargs)[source]

Plot an interactive heatmap with clustered rows and columns

Parameters:
  • data (DataFrame) – Data frame to plot

  • row_clust (Series | str | None) – Row cluster assignments, “auto” to compute clusters, or None

  • col_clust (Series | str | None) – Column cluster assignments, “auto” to compute clusters, or None

  • row_margin (float) – Margin size for row annotations

  • col_margin (float) – Margin size for column annotations

  • height (int) – Plot height in pixels

  • width (int) – Plot width in pixels

  • highlights (dict[str, str] | None) – Dictionary mapping row/column names to highlight colors

  • **kwargs – Additional arguments are passed to Heatmap

Returns:

Plotly figure object