This function was called 'seurat_violin' originally because of re-implementation of violin plot in seurat. Its functionality has now expanded to include scatter plots and boxplots.
1 2 3 4 5 6 7 8 9 10 11 12 13 | seurat_violin(
x,
features,
group.by,
assay = "RNA",
slot_data = "data",
num_col = NULL,
free_xy = "fixed",
AP = NULL,
plot_type = "box",
color.by = NULL,
...
)
|
x |
a Seurat object |
features |
genes to plot, which will be split over by facets |
group.by |
by which cell feature |
num_col |
in how many columns the facets are arranged |
plot_type |
can be 'box', 'violin' or 'scatter'. |
... |
additional arguments for |
color_by |
only effective when plot_type is 'scatter' |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.