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 plotrow_clust (
Series|str|None) – Row cluster assignments, “auto” to compute clusters, or Nonecol_clust (
Series|str|None) – Column cluster assignments, “auto” to compute clusters, or Nonerow_margin (
float) – Margin size for row annotationscol_margin (
float) – Margin size for column annotationsheight (
int) – Plot height in pixelswidth (
int) – Plot width in pixelshighlights (
dict[str,str] |None) – Dictionary mapping row/column names to highlight colors**kwargs – Additional arguments are passed to
Heatmap
- Returns:
Plotly figure object