Learn R Programming

MetaLandSim

Metapopulations Persistence and Range Expansion Simulation MetaLandSim is intended to provide a virtual environment, enabling the experimentation and simulation of processes at two scales: landscape and range. The simulation approach, taken by MetaLandSim, presents several advantages, like allowing the test of several alternatives and the knowledge of the full system. The role of simulation in landscape ecology is fundamental due to the spatial and temporal scale of the studied phenomena, which frequently hinders experimentation.

Copy Link

Version

Install

install.packages('MetaLandSim')

Monthly Downloads

311

Version

2.0.0

License

GPL (>= 2)

Maintainer

Frederico Mestre

Last Published

January 12th, 2023

Functions in MetaLandSim (2.0.0)

ifm.naive.MCMC

Estimate the naive design incidence function model
extract.graph

Extract landscape from span.graph generated list
import.shape

Import a shapefile
convert.graph

Convert data frame to landscape
expansion

Class 'expansion'
edge.graph

Produce an edge (links) data frame
ifm.missing.MCMC

Estimate the 'missing' design incidence function model
create.parameter.df

Create parameter data frame
metapopulation

Class 'metapopulation'
iterate.graph

Simulate landscape series occupation
matrix.graph

Returning a matrix with information on connections between patches
manage_landscape_sim

Batch landscape simulation
manage_expansion_sim

Simulate range expansion simulation
list.stats

Returning information on a dynamic landscape list
ifm.robust.MCMC

Estimate the robust design incidence function model
MetaLandSim-internal

Internal functions for the MetaLandSim package.
min_distance

Computes topological distance
mc_df

Modified patch occupancy data of Cabrera vole as a data frame
metrics.graph

Computes landscape connectivity metrics
plot_graph

Graphical display of the landscape
range_expansion

Computes a range expansion model
occ.landscape

Sample landscape with one simulated occupancy snapshot
plotL.graph

Plot one landscape of the list created by span.graph
occ.landscape2

Sample landscape with 10 simulated occupancy snapshots
rland.graph

Creates random landscape graph
plot_expansion

Graphical display of the expansion simulations
param1

Sample parameter data frame number 1
sim.det.20

Array corresponding to nsites x nyears x nvisits
rland

Random landscape
removepoints

Remove a given number of patches from the landscape
simulate_graph

Simulate species occupancy in one dynamic landscape
sim.area

Vector of the areas for each site; here, 100 sites
rg_exp

List with range.expansion output
span.graph

Simulate landscape dynamics over a number of time steps
summary_landscape

Summarize 'landscape' class objects
landscape

Class 'landscape'
sim.distance

Distance matrix between sampling sites (nsite x nsite).
spom

Stochastic Patch Occupancy Model
species.graph

Simulate landscape occupation
z.sim.20

Occupancy data generated with perfect detection with approximately 20% of data missing at random.
simulatedifm

Set of simulated data to use with the IFM parameter estimation functions. The data were generated using the code provided in "details".
z.sim

Occupancy data generated with perfect detection.
landscape_change

Landscape loosing 5% of patches per time step
param2

Sample parameter data frame number 2
summary_metapopulation

Summarize 'metapopulation' class objects
parameter.estimate

Estimate parameters
remove.species

Remove the species occupancy from the landscape
range_raster

Probability of occupancy, dispersal model
z.sim.20.fa

Occupancy data containing false absences
components.graph

Number of components of a landscape
combine.chains

Combines two chains into a single chain.
calcmode

Function for mode estimation of a continuous variable
accept.calculate

Calculate acceptance rates in MCMC chains
cluster.id

Classify patches in clusters
cluster.graph

Delivers the number of patches per cluster
addpoints

Add a given number of patches to a landscape
MetaLandSim-package

Landscape And Range Expansion Simulation
cabrera

Modified patch occupancy data of Cabrera vole
coda.create

Create files for use with R-package coda.