cluster.graph: Delivers the number of patches per cluster

View source: R/cluster.graph.R

cluster.graphR Documentation

Delivers the number of patches per cluster

Description

Returns a data frame with the number of nodes (habitat patches) in each component of the landscape graph (in this case a component is a group of patches connected by the species dispersal distance).

Usage

cluster.graph(rl)

Arguments

rl

Object of class 'landscape'.

Details

The components are defined based on the species mean dispersal ability. This implies that the connectivity model between patches is binary (connected/not connected) as opposed to probabilistic.

Value

This function returns a data frame with the number of patches of each component (group of patches). The returned data frame has two fields: cluster (Id of the component) and number of nodes (the number of nodes of the respective component).

Author(s)

Frederico Mestre and Fernando Canovas

See Also

rland.graph

Examples


data(rland)

cluster.graph(rl=rland)

#Output:

#  cluster number of nodes
#1        1              11
#2        2               1
#3        3              13
#4        4               1
#5        5               1
#6        6              15
#7        7               2
#8        8               1
#9        9               3
#10      10               1
#11      11               1
#12      12               2
#13      13               4
#14      14               1
#15      15               1
#16      16               1
#17      17               1



MetaLandSim documentation built on Jan. 13, 2023, 1:11 a.m.