pl_violin
Generate violin plots for visualizing data distribution, with options for grouping, scaling, and customizing color maps, legend placement, and axis labels.
Instructions
Plot violin plot of one or more variables.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
color_map | No | Color map to use for continuous variables. | |
figsize | No | Figure size. Format is (width, height). | |
gene_symbols | No | Column name in .var DataFrame that stores gene symbols. | |
groupby | No | The key of the observation grouping to consider. | |
jitter | No | Add jitter to the stripplot (only when stripplot is True). | |
keys | Yes | Keys for accessing variables of .var_names or fields of .obs. | |
layer | No | Name of the AnnData object layer that wants to be plotted. | |
legend_fontoutline | No | Line width of the legend font outline in pt. | |
legend_fontsize | No | Numeric size in pt or string describing the size. | |
legend_fontweight | No | Legend font weight. A numeric value in range 0-1000 or a string. | bold |
legend_loc | No | Location of legend, either 'on data', 'right margin' or a valid keyword for the loc parameter. | right margin |
log | No | Plot on logarithmic axis. | |
multi_panel | No | Display keys in multiple panels also when groupby is not None. | |
order | No | Order in which to show the categories. | |
palette | No | Colors to use for plotting categorical annotation groups. | |
rotation | No | Rotation of xtick labels. | |
scale | No | The method used to scale the width of each violin. | width |
size | No | Size of the jitter points. | |
stripplot | No | Add a stripplot on top of the violin plot. | |
use_raw | No | Use raw attribute of adata if present. | |
var_names | No | var_names should be a valid subset of adata.var_names. | |
vcenter | No | The value representing the center of the color scale. | |
vmax | No | The value representing the upper limit of the color scale. | |
vmin | No | The value representing the lower limit of the color scale. | |
xlabel | No | Label of the x axis. Defaults to groupby if rotation is None, otherwise, no label is shown. | |
ylabel | No | Label of the y axis. |