plotPairPCA: Plot pair-wise PCA plots for multiple dimensions

View source: R/pcaOtherPlotting.R

plotPairPCAR Documentation

Plot pair-wise PCA plots for multiple dimensions

Description

Plot pair-wise PCA plots for multiple dimensions

Usage

plotPairPCA(
  spe_object,
  n_dimension = 3,
  precomputed = NULL,
  assay = 2,
  title = NA,
  title.size = 14,
  rmduplabs = FALSE,
  flipcoord = FALSE,
  ...
)

Arguments

spe_object

A SpatialExperiment object.

n_dimension

The top n dimensions to be plotted

precomputed

a dimensional reduction results from stats::prcomp. result in reducedDims(object) to plot. Default is NULL, we will compute for you.

assay

a numeric or character, specifying the assay to use (for SummarizedExperiment and its derivative classes).

title

Character vector, title to put at the top.

title.size

Numeric vector, size of the title.

rmduplabs

Remove duplicated labels from the plot. FALSE by default.

flipcoord

Flip the xy coordinates. FALSE by default.

...

aesthetic mappings to pass to ggplot2::aes().

Value

A ggplot object.

Examples

data("dkd_spe_subset")
plotPairPCA(dkd_spe_subset)

DavisLaboratory/standR documentation built on March 28, 2024, 4:23 a.m.