View source: R/visualization.R
RegionPlot | R Documentation |
Plot fragment counts within a set of regions.
RegionPlot(
object,
key,
assay = NULL,
idents = NULL,
normalize = TRUE,
upstream = NULL,
downstream = NULL,
window = (upstream + downstream)/500,
nrow = NULL
)
object |
A Seurat object |
key |
Name of key to pull data from. Stores the results from
|
assay |
Name of assay to use. If a list or vector of assay names is
given, data will be plotted from each assay. Note that all assays must
contain |
idents |
Cell identities to include. Note that cells cannot be
regrouped, this will require re-running |
normalize |
Normalize by number of cells in each group |
upstream |
Number of bases to include upstream of region. If NULL, use
all bases that were included in the |
downstream |
Number of bases to include downstream of region. See
documentation for |
window |
Smoothing window to apply |
nrow |
Number of rows to use when creating plot. If NULL, chosen automatically by ggplot2 |
Returns a ggplot2 object
RegionMatrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.