Description Usage Arguments Details Value References Examples
View source: R/niche-grid-coords.R
Create an n
-dimensional grid of coordinates across niche space.
1 | niche.grid.coords(mins, maxs, nCoords)
|
mins |
Vector of length |
maxs |
Vector of length |
nCoords |
Number of coordinates across the niche space in all dimensions. |
This function creates a grid of coordinates systematically located
throughout the specified niche space to enable visualisation of niche patterns.
The extent of the grid is given by the mins
and maxs
, and the number
of coordinates for each dimension is given by nCoords
.
A matrix with n
columns.
Etherington TR, Omondiagbe OP (2019) virtualNicheR: generating virtual fundamental and realised niches for use in virtual ecology experiments. Journal of Open Source Software 4:1661 https://doi.org/10.21105/joss.01661
1 2 | # Niche space grid coordinates usage
niche.XY = niche.grid.coords(mins=c(15,0), maxs=c(35,200), nCoords=5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.