sccloud.violin¶
-
sccloud.violin(adata, keys, by=None, width=300, cmap='Category20', cols=None, use_raw=None, **kwds)[source]¶ Generate a violin plot.
- Parameters
adata (
AnnData) – Annotated data matrix.keys (
Union[str,List[str],Tuple[str]]) – Keys for accessing variables of adata.var_names, field of adata.var, or field of adata.obsby (
Optional[str]) – Group plot by specified observation.width (
int) – Plot width.cmap (
Union[str,List[str],Tuple[str]]) – Color map name (hv.plotting.list_cmaps()) or a list of hex colors. See http://holoviews.org/user_guide/Styling_Plots.html for more information.cols (
Optional[int]) – Number of columns for laying out multiple plotsuse_raw (
Optional[bool]) – Use raw attribute of adata if present.
- Return type
Element