| sumRaster | R Documentation | 
This function sums the individual color pattern RasterLayes as obtained by the main patternize functions.
sumRaster(rList, IDlist, type)
| rList | List of RasterLayers or list of RasterLayers for each k-means cluster. | 
| IDlist | List of sample IDs. | 
| type | Type of rasterlist; 'RGB' or 'k' (result from RGB or k-means analysis, respectively). | 
data(rasterList_lanRGB)
IDlist <- c('BC0077','BC0071','BC0050','BC0049','BC0004')
summedRaster <- sumRaster(rasterList_lanRGB, IDlist, type = 'RGB')
data(rasterList_lanK)
IDlist <- c('BC0077','BC0071','BC0050','BC0049','BC0004')
summedRasterList <- sumRaster(rasterList_lanK, IDlist, type = 'k')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.