clust_stack: Back-association of population-level clustering to individual...

View source: R/fcts packages.R

clust_stackR Documentation

Back-association of population-level clustering to individual clusters

Description

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.

Usage

clust_stack(grid, pop_clust, ind_clust, table)

Arguments

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

Value

A list of raster stack object.

Examples

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]])

BastilleRousseau/moveNT documentation built on Aug. 26, 2023, 5:54 a.m.