Description Usage Arguments Value Author(s) Examples
View source: R/utils_plotting.R
When plotting an embedding, we may want to plot specific cells, but constrain the scale to match plots of the whole dataset. Given a dim. reduction, this function extracts the x and y limits to use for plotting.
1 | drLims(seurat, reduction = "tsne")
|
seurat |
Seurat object for which a dimensionality reduction has been computed (e.g. PCA or tSNE) |
reduction |
String, corresponding to the dimensionality reduction to use. Default: "tsne". |
A list with two elements: "xlim", which is a character vector of the limits for the x-axis, and "ylim", correspondingly for the y-axis
Selin Jessa
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.