Description Usage Arguments Value Author(s) Examples
View source: R/comparisons_with_markers.R
Make a grid of violin plots with the mean expression of each cluster, for markers dataset 1 is the sample whose expression values will be plot, and dataset 2 is the sample whose cluster markers are used.
1 2 3 | pairwiseVln(seurat1, markers, seurat2,
sample_names = c(seurat1@project.name, seurat2@project.name),
marker_col = "gene")
|
seurat1 |
Seurat object for which to plot expression |
markers |
Data frame as returned by Seurat::FindAllMarkers() |
seurat2 |
Seurat object from which cluster markers ( |
sample_names |
(Optional) Character vector giving the names or ID of the two samples, used for axis labels, etc. Default: c(seurat1@project.name, seurat2@project.name) |
marker_col |
String specifying the column in the |
A ggplot object
adapted from Alexis Blanchet-Cohen
1 | pairwiseVln(pbmc, markers_pbmc, pbmc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.