Learn R Programming

synoptReg (version 0.2.2)

raster_pca: Raster PCA

Description

Perform a Principal Component Analysis on a RasterStack

Usage

raster_pca(raststack, aggregate = 0, focal = 0)

Arguments

raststack

Raster Stack.

aggregate

Integer. Aggregation factor based on function aggregate of raster package.

focal

Integer. smooth filter based on function focal of raster package.

Value

a list with:

  • A raster stack containing the results of the PCA

  • A data frame containing the main results of the PCA (standard deviation, proportion of variance and cumulative variance