View source: R/multistack.pca.R
multistack.pca | R Documentation |
multistack.pca, simultaneous PCA on more than one stack of environmental rasters
multistack.pca(..., n = 2)
... |
Any number of environmental raster stacks or bricks |
n |
The number of PCA layers to return |
A list containing a stack or brick of rasters for each input set representing the top n pca axes of the initial environmental variables, as well as the pca object from the analysis that produced them and some useful plots showing the distribution of each PC in the different stacks.
test1 <- terra::crop(euro.worldclim, terra::ext(-10, -5, 40, 43))
test2 <- terra::crop(euro.worldclim, terra::ext(-5, 5, 40, 48))
test3 <- terra::crop(euro.worldclim, terra::ext(5, 15, 44, 48))
multistack.pca(test1, test2, test3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.