All Projects → MoBiodiv → Mobsim

MoBiodiv / Mobsim

Spatial analysis and simulation of ecological communities

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Mobsim

Reactphysics3d
Open source C++ physics engine library in 3D
Stars: ✭ 730 (+8011.11%)
Mutual labels:  simulation
Uav coverage
Simulation for planar area coverage by a swarm of UAVs
Stars: ✭ 17 (+88.89%)
Mutual labels:  simulation
Fastscape
A fast, versatile and user-friendly landscape evolution model
Stars: ✭ 22 (+144.44%)
Mutual labels:  simulation
Shadow
Shadow is a unique discrete-event network simulator that runs real applications like Tor, and distributed systems of thousands of nodes on a single machine. Shadow combines the accuracy of emulation with the efficiency and control of simulation, achieving the best of both approaches.
Stars: ✭ 769 (+8444.44%)
Mutual labels:  simulation
Causal Inference For Data Scientists
Notebooks of Python and R code which illustrates basic causal inference using simulated data
Stars: ✭ 17 (+88.89%)
Mutual labels:  simulation
Simex
Start-to-end photon experiment simulation platform
Stars: ✭ 18 (+100%)
Mutual labels:  simulation
Mmcamscanner
Simulation of CamScanner app With Custom Camera and Crop Rect Validation
Stars: ✭ 728 (+7988.89%)
Mutual labels:  simulation
Imagine Old
Modeling and simulations using computational graphs
Stars: ✭ 25 (+177.78%)
Mutual labels:  simulation
Splatter Paper
Data and analysis for the Splatter paper
Stars: ✭ 17 (+88.89%)
Mutual labels:  simulation
Pyncov 19
Pyncov-19: Learn and predict the spread of COVID-19
Stars: ✭ 20 (+122.22%)
Mutual labels:  simulation
Openmm
OpenMM is a toolkit for molecular simulation using high performance GPU code.
Stars: ✭ 791 (+8688.89%)
Mutual labels:  simulation
Spritekit Leaf Simulation
A simulation of leaves blowing in the wind created with SpriteKit.
Stars: ✭ 6 (-33.33%)
Mutual labels:  simulation
Dig Into Apollo
Apollo notes (Apollo学习笔记) - Apollo learning notes for beginners.
Stars: ✭ 903 (+9933.33%)
Mutual labels:  simulation
Splishsplash
SPlisHSPlasH is an open-source library for the physically-based simulation of fluids.
Stars: ✭ 735 (+8066.67%)
Mutual labels:  simulation
Vkb
Bot for vk.com competitions
Stars: ✭ 24 (+166.67%)
Mutual labels:  simulation
Su2
SU2: An Open-Source Suite for Multiphysics Simulation and Design
Stars: ✭ 731 (+8022.22%)
Mutual labels:  simulation
Reads For Assembly
Simulate metagenomic short reads from one or more populations.
Stars: ✭ 17 (+88.89%)
Mutual labels:  simulation
Bindsnet
Simulation of spiking neural networks (SNNs) using PyTorch.
Stars: ✭ 837 (+9200%)
Mutual labels:  simulation
Mpm2d
2D Material Point Method
Stars: ✭ 25 (+177.78%)
Mutual labels:  simulation
Ditras
DITRAS (DIary-based TRAjectory Simulator), a mathematical model to simulate human mobility
Stars: ✭ 19 (+111.11%)
Mutual labels:  simulation

CRAN_Status_Badge

Licence Project Status: Active – The project has reached a stable, usable state and is being actively developed.

DOI

Overview

The goal of the package mobsim is to facilitate understanding of scale-dependent biodiversity changes.

The package includes functions to simulate species distributions in space with controlled abundance distributions as well as controlled intraspecific aggregation. For analysis there are functions for species rarefaction and accumulation curves, species-area relationships, endemics-area relationships and th distance-decay of community similarity.

A detailed introduction of the package is available at bioRxiv.

Installation

# The easiest way to get mobsim is to install from CRAN:
install.packages("mobsim")

# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("MoBiodiv/mobsim", build_vignettes = TRUE)

Please enter bug reports on github.

Getting help

You can get an overview of the available functions in mobsim:

?mobsim

Or have a look at tutorials in the vignette:

browseVignettes("mobsim")

Examples

Here is an example of how to simulate two communities, which just differ in their spatial aggregation of species, but have the same species abundance distribution and the same total number of individuals.

Simulation of communities

library(mobsim)
comm_rand <- sim_poisson_community(s_pool = 30, n_sim = 300)
comm_agg <- sim_thomas_community(s_pool = 30, n_sim = 300, sigma = 0.05, mother_points = 1)
par(mfrow = c(1,2))
plot(comm_rand)
plot(comm_agg)

Analysis of spatially-explicit community data

mobsim mobsim offer functions to analyse spatially-explicit community data. For example the species-area relationship of a community can be easily evaluated.

sar_rand <- divar(comm_rand)
sar_agg <- divar(comm_agg)
plot(m_species ~ prop_area, data = sar_rand, type = "b", log = "xy",
     xlab = "Proportion of area sampled",ylab = "No. of species",
     ylim = c(3,30))
lines(m_species ~ prop_area, data = sar_agg, type = "b", col = 2)
legend("bottomright", c("Random","Aggregated"), col = 1:2, lwd = 2)

Sampling of communities

Simulated or observed communities can be also sampled inorder to test whether biodiversity changes are correctly detected and revealed by any sampling design.

par(mfrow = c(1,2))
samples_rand <- sample_quadrats(comm_rand, avoid_overlap = TRUE)
samples_agg <- sample_quadrats(comm_agg, avoid_overlap = TRUE)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].