drLims: Get the limits of a the first two dimensions in a...

Description Usage Arguments Value Author(s) Examples

View source: R/utils_plotting.R

Description

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.

Usage

1
drLims(seurat, reduction = "tsne")

Arguments

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".

Value

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

Author(s)

Selin Jessa

Examples

1

fungenomics/cytobox documentation built on Feb. 13, 2020, 10:51 a.m.