View source: R/Seurat.Utils.Visualization.R
FlipReductionCoordinates | R Documentation |
Flips dimensionality reduction coordinates (such as UMAP or tSNE) vertically or horizontally to change the visualization perspective.
FlipReductionCoordinates(
obj = combined.obj,
dim = 2,
reduction = "umap",
flip = c("x", "y", "xy", NULL)[1],
FlipReductionBackupToo = TRUE
)
obj |
Seurat object to modify; Default: |
dim |
Number of dimensions in the reduction to consider; Default: 2. |
reduction |
Dimension reduction technique to modify ('umap', 'tsne', or 'pca'); Default: 'umap'. |
flip |
Axis (or axes) to flip; can be 'x', 'y', or 'xy' to flip both; Default: "x". |
FlipReductionBackupToo |
Boolean indicating whether to also flip coordinates in the backup slot; Default: |
## Not run:
# Before flipping UMAP coordinates
clUMAP()
# Flip UMAP coordinates and visualize again
combined.obj <- FlipReductionCoordinates(combined.obj)
clUMAP()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.