Plot pair-wise PCA plots for multiple dimensions

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

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.

...

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

Value

A ggplot object.

Examples

data("dkd_spe_subset")
plotPairPCA(dkd_spe_subset)