Learn R Programming

simecol (version 0.5-5)

diffusion: A Random Walk Particle Diffusion Model

Description

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

Usage

data(diffusion)

Arguments

Details

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

See Also

sim, parms, init, times.

Examples

Run this code
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))

Run the code above in your browser using DataLab