View source: R/fcts packages.R
clust_stack | R Documentation |
Generate individual-level rasters of population-level clustering. For each individual, the fuction generate a raster stack containing a raster of the most likely cluster, and several rasters giving the probability of observing each cluster.
clust_stack(grid, pop_clust, ind_clust, table)
grid |
The output of the loop function |
pop_clust |
The output of the pop_clust function |
ind_clust |
The output of the ind_clust function |
table |
The output of table_cluster |
A list of raster stack object.
data(albatross)
grid<-loop(albatross, 35000)
table_grid<-table_cluster(albatross, grid)
ls_ind<-ind_clust(table_grid, max.n.clust=8)
pop<-pop_clust(albatross, ls_ind)
clust_stack<-clust_stack(grid, pop, ls_ind, table_grid)
plot(clust_stack[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.