Description Usage Arguments Examples
View source: R/projectSummaryMaxSurface.R
Create a summary surface showing which RasterLayer in a Stack has the highest value at a given location. For each cell in a RasterStack, this function returns the identity of the RasterLayer with the highest value at that cell. This surface is intended as a visual summary of common origins, not a basis for quantitative analysis.
1 | projectSummaryMaxSurface(surfaces, nClust = FALSE)
|
surfaces |
Object of class "RasterStack", where each layer represents a probability-of-origin surface |
nClust |
Create and apply a multi-core cluster for faster processing using 'raster' and 'parallel' packages. Defaults to 'FALSE' (i.e., no clustering). |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Create and cluster example assignment surfaces.
myiso <- rasterFromXYZ(isoscape)
myiso_sd <- rasterFromXYZ(isoscape_sd)
assignmentModels <- isotopeAssignmentModel(
ID = LETTERS[1:4],
isotopeValue = seq(-120,-25,length.out = 4),
SD_indv = rep(5,4),
precip_raster = myiso,
precip_SD_raster = myiso_sd,
nClusters = FALSE
)
raster::plot(assignmentModels)
# Project mean aggregate surfaces into space.
summaryMap <- projectSummaryMaxSurface(
surfaces = assignmentModels,
nClust = FALSE
)
raster::plot(summaryMap)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.