View source: R/mod_fit_pdfsp.R
fit_xrange | R Documentation |
pdfs
.Define the climate gradient to fit the pdfs
.
fit_xrange(ccs, shape, bin_width, npoints = 500)
ccs |
A |
shape |
The imposed shape of the species |
bin_width |
The width of the bins used to correct for unbalanced climate state. Use values that split the studied climate gradient in 15-25 classes (e.g. 2°C for temperature variables). Default is 1. |
npoints |
The number of points to be used to fit the |
A regularly spaced climate gradient with npoints
points.
# Creating one randomised climate space
climate_space <- sample(0:300 / 10, 4000, replace = TRUE)
ccs <- calib_clim_space(climate_space, 2)
xrange <- fit_xrange(ccs, "normal", 2)
head(xrange)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.