diffusion {simecol}R Documentation

A Random Walk Particle Diffusion Model

Description

simecol example: This is a random walk (basic particle diffusion) model.

Usage

data(diffusion)

Format

An S4 object according to the rwalkModel specification. The object contains the following slots:

main
A function with the movement rules for the particles.
parms
A list with the following components:
ninds
number of simulated particles,
speed
speed of the particles,
area
vector with 4 elements giving the coordinates (left, bottom, right, top) of the coordinate system.
times
Simulation time (discrete time steps, by-argument ignored).
init
Data frame holding the start properties (Cartesian coordinates x and y and movement angle a) of the particles.

Details

To see all details, please have a look into the implementation.

See Also

sim, parms, init, times.

Examples

  ## Not run: 
    data(diffusion)
    plot(sim(diffusion))
    # show "grid of environmental conditions"
    image(inputs(diffusion))
    # set conditions to "1", i.e. remove "refuge" in the middle
    inputs(diffusion) <- matrix(1, 100, 100)
    plot(sim(diffusion))
  
## End(Not run)

[Package simecol version 0.5-2 Index]