Learn R Programming

briskaR (version 0.1.2)

demo.pollen.run: briskaR package pollen demonstration

Description

Demonstration of briskaR package on Bt maize pollen (Genetically Modified crop) on non target Lepidoptera larvae.

Usage

demo.pollen.run(nb_fields=100,max_size=5000,raster_size=2^10,nb_ind=100)

Arguments

nb_fields

number of fields (sources and neutrals) in the landscape (default 100)

max_size

landscape size (in meter) (default 5000)

raster_size

raster size (default 2^10)

nb_ind

number of individuals to simulate (default 100)

Value

A list of the simulated Landscape-class object, the Individuals-class object, and the toxicIntensity array [time, x, y]. The map of landscape with toxic intensity and individual states is plotted at time 30 (end of simulation).

Details

In this example, 40% of fields are sources (40 fields) and 100 individuals are exposed to toxic pollen. The time simulation of this demo is 30 days.

This demo takes about 2 minutes running, according to the computer.

Examples

Run this code
# NOT RUN {
# Demo for toxic pollen dispersion on (100) exposed individuals with 100 fields 
# in a squared domain of 5000x5000meters. 
# The domain is discretized by 1024x1024 pixels (2^10).
demo.pollen.run(nb_fields=100,max_size=5000,raster_size=2^10,nb_ind=100)
# }

Run the code above in your browser using DataLab