recluster.group.col {recluster} | R Documentation |
Computes mean coordinate values and RGB colours.
Description
This function computes barycenters and their RGB colours for cases belonging to the same group from an original RGB colour matrix obtained by recluster.col.
Usage
recluster.group.col(mat,member)
Arguments
mat |
An inherited matrix from recluster.col containing the original RGB colour space. |
member |
A vector indicating group membership for each case. |
Value
aggr |
A matrix in the recluster.col format with mean values for coordinates and RGB colours for groups. |
all |
A matrix in the recluster.col format reporting mean RGB colours of the group of each original case. |
Author(s)
Leonardo Dapporto and Matteo Ramazzotti
References
Kreft H., Jetz, W. "A framework for delineating biogeographic regions based on species distributions" J Biogeogr (2010),37: 2029-2053.
Dapporto, L., Fattorini, S., Voda, R., Dinca, V., Vila, R. "Biogeography of western Mediterranean butterflies: combining turnover and nestedness components of faunal dissimilarity." J Biogeogr (2014), 41: 1639-1650.
Examples
data(datamod)
sordiss<- recluster.dist(datamod,dist="sorensen")
points<-cmdscale(sordiss)
col<-recluster.col(points)
group<-c(1,2,3,3,3,1,2,1,2)
ncol<-recluster.group.col(col,group)
recluster.plot.col(ncol$aggr)