Generate random traits Compared to generate_cor_traits() introduce a little of variability in first trait as instead of being directly determined by the species number it adds little white noise to it and scale it to a minimum of 0 if negative and maximum of 25 if maximum value is over 25.

generate_cor_traits_rand(
  number_patches,
  number_species,
  number_other = 9,
  cor_coef = 0.7,
  min_value = 1
)

Arguments

number_patches

Number of patches to consider

number_species

Number of species to which generate the traits

number_other

(default = 9) Number of other traits to generate

cor_coef

(default = 0.7) Correlation coefficient between first and other traits

min_value

absolute minimum trait value