View source: R/distribution_plots.R
distribution_plots | R Documentation |
Generates violin plots, boxplots, or density plots of variables in the spatial meta data or of gene expression
distribution_plots(
x = NULL,
plot_meta = NULL,
genes = NULL,
samples = NULL,
data_type = "tr",
color_pal = "okabeito",
plot_type = "violin",
ptsize = 0.5,
ptalpha = 0.5
)
x |
an STlist |
plot_meta |
vector of variables in |
genes |
vector of genes to plot expression distribution. If used in conjunction
with |
samples |
samples to include in the plot. Default (NULL) includes all samples |
data_type |
one of 'tr' or 'raw', to plot transformed or raw counts |
color_pal |
a string of a color palette from |
plot_type |
one of "violin", "box", or "density" (violin plots, box plots, or
density plots respectively). If |
ptsize |
the size of points in the plots |
ptalpha |
the transparency of points (violin/box plot) or curves (density plots) |
The function allows to visualize the distribution of spot/cell total counts, total genes, or expression of specific genes across all samples for comparative purposes. It also allows grouping of gene expression values by categorical variables (e.g., clusters).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.