c2v.pl.scaled_dotplot#
- c2v.pl.scaled_dotplot(adata, groupby, var_names, cmap='RdBu_r', vmin=-2.5, vmax=2.5, colorbar_title='Mean Z-score', max_value=5.0, **kwargs)#
Function plots dotplot colored by scaled expression values. The problem with sc.pl.dotplot is that dot_size is defined by amount of the expression values more or equal than 0, and for scaled expressions it’s not the correct case.
- Parameters:
- adata sc.AnnData
Annotated data matrix.
- groupby str
Key for observations grouping.
- var_names list[str]
List of genes to plot.
- cmap str
Colormap to use. Default is “RdBu_r”.
- vmin float
Minimum value for color scaling. Default is -2.5.
- vmax float
Maximum value for color scaling. Default is 2.5.
- colorbar_title str
Title for the colorbar. Default is “Mean Z-score”.
- max_value float
Maximum value for scaling expression values. Default is 5.
- **kwargs
Additional keyword arguments to pass to sc.pl.dotplot.
- Returns:
matplotlib.axes.Axes Axes object with the dotplot.