View source: R/reg2cluster2dist.R
| communities | R Documentation | 
Construct communities from individuals using geographical distance and
hierarchical clustering. Communities are clusters of geographically
close individuals, formed by hclust with specified
distance cutoff.
communities(geodist,grouping=NULL,
                        cutoff=1e-5,method="single")
geodist | 
 
  | 
grouping | 
 something that can be coerced into a factor. Different
groups indicated by   | 
cutoff | 
 numeric; clustering distance cutoff value, passed on as
parameter   | 
method | 
 
  | 
Vector of community memberships for the individuals (integer numbers from 1 to the number of communities without interruption.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
communitydist
  data(veronica)
  ver.geo <- coord2dist(coordmatrix=veronica.coord[1:90,],file.format="decimal2")
  species <-c(rep(1,64),rep(2,17),rep(3,9))
  communities(ver.geo,species)
  
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.