View source: R/chromato_env16.R
chromato_env16 | R Documentation |
Display the multidimensional ecological niche of a species as an array of coloured cells (alpha categories by p environmental variables).
chromato_env16(z, y, alpha, m, k, order_smth)
z |
a matrix with n samples by p environmental variables (i.e. the value of each environmental variable in each sample) |
y |
a vector with the abundance of a species in the n samples |
alpha |
an integer corresponding to the number of category along each environmental variable |
m |
an integer corresponding to the lowest number of samples needed in a category in order to have an estimation of the mean abundance |
k |
an integer corresponding to the percentage of samples with the highest abundance use to estimate the mean abundance of a species in a given category |
order_smth |
an integer corresponding the order of the simple moving average applied along each niche dimension |
chr2 a matrix corresponding to the species chromatogram (alpha categories by p environmental variables)
# Load the example datasets data("data_abundance") data("environment") # Characterise and display the ecological niche of a pseudo-species # `alpha`=50 categories, `m`=1 sample, `k`=5 and `order_smth`=2 sp_chrom_PS1<-chromato_env16(environment,data_abundance[,1],50,1,5,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.