pcaTrans: PCA transform a 'Raster*' object

Description Usage Arguments Value

Description

Given a matrix of point coordinates and a Raster* object of covariates, return a Raster* object of the same size with the layers giving principal components from a PCA rotation based on the data values at the coordinates.

Usage

1
pcaTrans(coords, covs)

Arguments

coords

a two-column matrix or dataframe giving the location about which to carry out the PCA analysis

covs

a Raster* object containing covariates to rotate

Value

a Raster* object with the same extent, resolutiona and number of layers as covs but with each layer giving the location on a different principal component axis.


SEEG-Oxford/seegMBG documentation built on May 9, 2019, 11:08 a.m.