Package: fdcoexist 0.0.1

fdcoexist: Multi-Species Trait-Based Coexistence Model in Discrete time

A modified Beverton-Holt model used in the Denelle, Grenié et al. manuscript that expresses environmental filtering, limiting similarity and hierarchical competition explicitely in function of species traits. This package provides all the code necessary to rerun the analyses of the manuscript.

Authors:Matthias Grenié [aut, cre], Pierre Denelle [aut], Caroline Tucker [aut], François Munoz [aut], Cyrille Violle [aut]

fdcoexist_0.0.1.tar.gz
fdcoexist_0.0.1.zip(r-4.5)fdcoexist_0.0.1.zip(r-4.4)fdcoexist_0.0.1.zip(r-4.3)
fdcoexist_0.0.1.tgz(r-4.4-any)fdcoexist_0.0.1.tgz(r-4.3-any)
fdcoexist_0.0.1.tar.gz(r-4.5-noble)fdcoexist_0.0.1.tar.gz(r-4.4-noble)
fdcoexist_0.0.1.tgz(r-4.4-emscripten)fdcoexist_0.0.1.tgz(r-4.3-emscripten)
fdcoexist.pdf |fdcoexist.html
fdcoexist/json (API)

# Install 'fdcoexist' in R:
install.packages('fdcoexist', repos = c('https://rekyt.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/rekyt/fdcoexist/issues

On CRAN:

2.70 score 1 scripts 22 exports 38 dependencies

Last updated 2 years agofrom:08d75af742. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 30 2024
R-4.5-winNOTEOct 30 2024
R-4.5-linuxNOTEOct 30 2024
R-4.4-winNOTEOct 30 2024
R-4.4-macNOTEOct 30 2024
R-4.3-winNOTEOct 30 2024
R-4.3-macNOTEOct 30 2024

Exports:%>%alphatermbevHoltFctcheck_trait_weightscompute_compet_distancecompute_hierarchical_competcreate_trait_weightsenv_curveextract_growth_ratesextract_mismatchesgenerate_cor_traitsgenerate_cor_traits_randmismatchmultigenplot_patchplot_rhr_envsp_ab_grwtd_kurtosiswtd_meanwtd_skewnesswtd_var

Dependencies:clicolorspacecpp11dplyrfansifarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmatrixStatsmgcvmunsellnlmepillarpkgconfigpurrrR6RColorBrewerrlangscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLiteWeighted.Desc.Statwithr

fdcoexist equation only

Rendered fromequation_only.Rmdusingknitr::rmarkdownon Oct 30 2024.

Last update: 2022-10-11
Started: 2021-02-23

Readme and manuals

Help Manual

Help pageTopics
Function definition for deterministic model run with global dispersal Compute alpha term in Beverton-Holt functionalphaterm
Beverton-Holt functionbevHoltFct
Check trait weights data.framecheck_trait_weights
Compute trait distance between speciescompute_compet_distance
Compute Hierarchical Competition coefficient at each time stepcompute_hierarchical_compet
Generates a data.frame of trait weightscreate_trait_weights
Species growth rate for a given trait and environmentenv_curve
Extract different growth rates from fdcoexist simulationextract_growth_rates
Extract species mismatchesextract_mismatches
Generate correlated traitsgenerate_cor_traits
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
Plot mismatch per species between environmental optimum and max. abundancemismatch
Function to run the simulationmultigen
Plot patch dynamicsplot_patch
Plot hierarchical growth of species in all the patchesplot_rh
Plot environmental response curves of species in all the patchesr_env
Extract Species by Patch Growth Rates and Optimal Patchesr_env_CT
Scale distance or matrix between 0 and 1scale_distance
Plot environmental response curves of species in all the patchessp_ab_gr
Weighted Kurtosis with na.rmwtd_kurtosis
Weighted mean that allows NA in values and weightswtd_mean
Weighted Skewness with na.rmwtd_skewness
Weighted Variancewtd_var