View source: R/data.into.Grid.R
data.into.Grid | R Documentation |
This function adds the species occurrence data to a new grid with given dimension, shift and resolution.
data.into.Grid(dataset.one.species, dimension, origin, resolution=1)
dataset.one.species |
A dataset containing one species with its ID (named: speciesID) and the longitude (named: long) and latitude (named: lat) of the occurrence locations of that species. |
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. |
This routine adds the species occurrence data to the grid through adding their location as a point into it.
This function returns a grid which contains the species occurrence information.
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)
##create grid parameters
dimension <- getDimension(dataset.all.species, resolution=1)
origin <- getOrigin(dataset.all.species)
#extract datasets of one species out of database
dataset.one.species <- extract.species(dataset.all.species, 3)
##add species occurrence information to grid
grid <- data.into.Grid(dataset.one.species, dimension, origin, resolution=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.