Skip to contents

Performs PCA and stores the results in a Representation.

Usage

runPCA.Region(
  region,
  data.slot,
  name,
  dims = NULL,
  features = NULL,
  scale = TRUE
)

Arguments

region

A Region 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)

Scroll to top