Skip to contents

Performs PCA and stores the results in a Representation.

Usage

runPCA(
  object,
  data.slot = "ScaledData",
  name = "pca",
  dims = NULL,
  features = NULL,
  scale = TRUE,
  ...
)

Arguments

object

SpatialMap object

data.slot

Which SpatialMap data slot to use as input.

name

Choose the name of the resulting Representation.

dims

The number of dims to return (the rank of the PCA)

features

Select which features to use

scale

Whether to scale variables to unit variance before analyzing (passed to scale. arg in stats::prcomp)

...

Arguments passed to .smapply

Scroll to top