View source: R/searchClusters.R
searchClusters | R Documentation |
This routine searches clusters in the result grid of species richness estimation.
searchClusters(species.richness, dimension, origin, resolution, clusterlimit)
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. |
This routine searches clusters in the result grid of species richness estimation to find centers of species richness.
This function returns a list containing vectors of the position of pixels which belong together.
Maximilian Lange, Sven Lautenbach
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.
##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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.