Heatmap.__init__#
missionbio.plotting.heatmap.Heatmap.__init__
- Heatmap.__init__(data: DataFrame, y_groups: Sequence, x_groups: Optional[Sequence] = None, palette: Optional[Dict] = None, ytick_proportions: bool = False, title: str = '') None #
- Parameters:
- datapd.DataFrame
The dataframe whose values are to be plotted. The index name is used for the title of the colorbar, the column names are shown on hovering over the heatmap.
- y_groupsnp.ndarray
The labels for each row.
- x_groupsnp.ndarray
The label for each column. These must be contiguous. For example, [“1”, “2”, “2”] is permitted, but [“1”, “2”, “1”] is not.
- paletteOptional[Dict]
The dictionary with the color for each unique value in y_groups.
- ytick_proportionsbool
Whether to show the fraction of rows of each y_group on the y-axis ticks.
- titlestr
The title of the plot
< Class Heatmap