searchClusters: Search clusters in the result grid of species richness...

View source: R/searchClusters.R

searchClustersR Documentation

Search clusters in the result grid of species richness estimation.

Description

This routine searches clusters in the result grid of species richness estimation.

Usage

searchClusters(species.richness, dimension, origin, resolution, clusterlimit)

Arguments

species.richness

The grid that should be adjusted. It contains the result of species richness estimation or cross-validation.

dimension

The dimension of the processed grid.

origin

The geographic coordinates of the origin of the grid.

resolution

The resolution of the grid in (geographical) degree.

clusterlimit

The limit under which values of 'species.richness' should not be used to build clusters.

Details

This routine searches clusters in the result grid of species richness estimation to find centers of species richness.

Value

This function returns a list containing vectors of the position of pixels which belong together.

Author(s)

Maximilian Lange, Sven Lautenbach

References

Raedig, C., Dorman, C.F., Hildebrandt, A. and Lautenbach, S. (2010). Reassessing Neotropical angiosperm distribution patterns based on monographic data: a geometric interpolation approach. Biodivers Conserv, 19, 1523-1546.

Examples

##load data
data(dataset.all.species)
data(dataset.landwater)

##create grid parameters
dimension <- getDimension(dataset.all.species, resolution=1)
origin <- getOrigin(dataset.all.species)

##create landwatermask
landwatermask.nocoast <- createLandwatermask(dataset.landwater, 
				dimension, origin, resolution=1)

##estimate species richness
species.richness.weighted <- species.richness(dataset.all.species,
landwatermask.nocoast, distances=1:5, weight=0.5, dimension,
origin, resolution=1, upperbound=3000, all.species=1:2)

##prepare clustersearch
clusterlimit <- 100

##adjust species richness
clusterlist <- searchClusters(species.richness.weighted, 
		dimension, origin, resolution=1, clusterlimit)

sperich documentation built on July 26, 2023, 5:49 p.m.