Package: comdynamite 0.5.0

comdynamite: Process-Based Metacommunity Simulations with Phylogenetic Structure

Simulates metacommunity dynamics with the process-based model of Thompson et al. (2020) <doi:10.1111/ele.13568>: density-independent growth that depends on the match between each species' environmental optimum and the local environment, Beverton-Holt competition, Poisson demographic stochasticity, and emigration and immigration among sites. Landscapes can be spatially implicit, with uniform dispersal, or explicit grids with an exponential dispersal kernel and a spatially autocorrelated environment, and the environment can change over time. Species traits (environmental optima, niche breadths and maximum growth rates) can carry phylogenetic signal or evolve under an Ornstein-Uhlenbeck process with one or several optima, and interspecific competition can be structured by relatedness. Rule-based assembly without population dynamics (limiting similarity, habitat filtering and neutral assembly) follows Kraft et al. (2007) <doi:10.1086/519400>, and static metacommunities with unimodal species responses follow Peres-Neto et al. (2012) <doi:10.1890/11-0494.1>. The model was implemented from the published equations.

Authors:Diogo B. Provete [aut, cre]

comdynamite_0.5.0.tar.gz
comdynamite_0.5.0.zip(r-4.7-any)comdynamite_0.5.0.zip(r-4.6-any)comdynamite_0.5.0.zip(r-4.5-any)
comdynamite_0.5.0.tgz(r-4.6-any)comdynamite_0.5.0.tgz(r-4.5-any)
comdynamite_0.5.0.tar.gz(r-4.7-any)comdynamite_0.5.0.tar.gz(r-4.6-any)
comdynamite_0.5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
comdynamite/json (API)

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

Bug tracker:https://github.com/diogoprov/comdynamite/issues

Pkgdown/docs site:https://provetelab.org

Datasets:
  • daphniids - Daphniids of the northeastern United States

On CRAN:

Conda:

metacommunitycommunity-ecologysimulationspecies-sortingmass-effectsdispersalcompetitionphylogeneticscommunity-phylogeneticsprocess-based-model

3.18 score 27 exports 5 dependencies

Last updated from:c978b83bb8 (on main). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK172
source / vignettesOK223
linux-releaseOK148
macos-releaseOK133
macos-oldrelOK145
windows-develOK125
windows-releaseOK128
windows-oldrelOK134
wasm-releaseOK113

Exports:assemble_communitycompetition_matrixdispersal_kernelenv_over_timegrowth_rateslandscape_gridlandscape_implicitlogistic_gradientsmc_dynamicsnode_contrastsnode_testpaint_regimespcc_testphylo_betaphylo_beta_testphylo_eigenvectorsphylo_vectorplot_node_testplot_trait_partitionsimulate_logisticsimulate_metacommunitysimulate_staticspecies_traitstorus_permutationstrait_bmtrait_partitiontraits_ou

Dependencies:apedigestlatticenlmeRcpp

Evaluating a method with simulated metacommunities
Step 1: simulate data with a known truth | Step 2: write the method as a function | Step 3: define the alternatives to compare | Step 4: replicate and summarise | What the evaluation shows | Adapting the workflow | Tree shape as a factor of the design | References

Last update: 2026-11-06
Started: 2026-11-06

Dispersal, niche conservatism and phylogenetic community structure
Design | Results | Limitations | References

Last update: 2026-11-06
Started: 2026-11-06

Getting started with comdynamite
A first metacommunity | Species sorting and mass effects | Spatially explicit landscapes | An environment that changes over time | Traits under one or several adaptive optima | Rule-based assembly (Kraft et al. 2007) | Differences from Thompson et al. (2020) | References

Last update: 2026-11-05
Started: 2026-11-05

Readme and manuals

Help Manual

Help pageTopics
Assemble a local community from a regional pool by rulesassemble_community
Competition matrixcompetition_matrix
Daphniids of the northeastern United Statesdaphniids
Exponential dispersal kerneldispersal_kernel
Environment that changes over timeenv_over_time
Growth rates of each species at each sitegrowth_rates
Spatially explicit landscape on a square gridlandscape_grid
Spatially implicit landscapelandscape_implicit
Gradients of the seven scenarios of Peres-Neto et al. (2012)logistic_gradients
Metacommunity dynamics from growth ratesmc_dynamics
Node contrasts of a phylogenynode_contrasts
Test clades against the environment, node by nodenode_test
Assign selective regimes to cladespaint_regimes
Test phylogenetic community composition against the environmentpcc_test
Phylogenetic beta diversity between communitiesphylo_beta
Test phylogenetic beta diversity against the environmentphylo_beta_test
Phylogenetic eigenvectorsphylo_eigenvectors
Represent a phylogeny by one vector related to a predictorphylo_vector
Plot the results of a node test on the phylogenyplot_node_test
Plot the fractions of a trait partitionplot_trait_partition
Simulate presences and absences from logistic responsessimulate_logistic
Simulate a metacommunitysimulate_metacommunity
Simulate a static metacommunitysimulate_static
Species traits, with or without phylogenetic signalspecies_traits
Site permutations that keep the structure of a torustorus_permutations
Trait evolution by Brownian motion with Pagel's lambdatrait_bm
Partition trait or phylogenetic variation between environment and spacetrait_partition
Traits evolving by an Ornstein-Uhlenbeck process with one or several optimatraits_ou