Learn R Programming

landsepi (version 0.0.8)

AgriLand: Landscape generation

Description

Generate a landscape composed of fields where a susceptible (SC) and one (RC) or two (RC1 and RC2) resistant cultivars are allocated with controlled proportions and spatio-temporal aggregation.

Usage

AgriLand(landscape, filename = "landscapeTEST1", propSR, isolSR, propRR,
  isolRR, strat, Nhost, nYears, seed, graphic = FALSE)

Arguments

landscape

a spatialpolygon object containing field coordinates.

filename

a character string specifying the output layer name.

propSR

proportion of fields where resistance is deployed: (RC)/(SC+RC) or (RC1+RC2)/(SC+RC1+RC2). Must be between 0 and 1.

isolSR

an integer giving the spatial aggregation of fields where resistance is deployed (1=highly fragmented, 2=balanced, 3=highly aggregated).

propRR

when applicable (mixtures and mosaics only), relative proportion of the second resistant cultivar: (RC2)/(RC1+RC2). Must be between 0 and 1.

isolRR

when applicable, an integer giving the spatial (for mosaics) or temporal (for rotations) aggregation of fields cultivated with the second resistant cultivar (1=highly fragmented, 2=balanced, 3=highly aggregated).

strat

a character string specifying the deployment strategy ("MO"=mosaic, "MI"=mixture, "RO"=rotations, "PY"=pyramiding).

Nhost

an integer giving the number of cultivars (1, 2 or 3).

nYears

an integer giving the number of simulated years.

seed

an integer giving the seed value (for random number generator).

graphic

a logical indicating if a graph of the landscape must be generated (TRUE) or not (FALSE).

Value

a shapefile containing the landscape structure (i.e. coordinates of field boundaries) and composition (i.e. cultivars) in time (i.e. each year) and space (i.e. each field).

Details

An algorithm based on latent Gaussian fields is used to allocate two different crop cultivars across the simulated landscapes (e.g. a susceptible and a resistant cultivar, denoted as SC and RC, respectively). This algorithm allows the control of the proportions of each cultivar in terms of surface coverage, and their level of spatial aggregation. A random vector of values is drawn from a multivariate normal distribution with expectation 0 and a variance-covariance matrix which depends on the pairwise distances between the centroids of the fields. Next, the crop cultivars are allocated to different fields depending on whether each value drawn from the multivariate normal distribution is above or below a threshold. The proportion of each cultivar in the landscape is controlled by the value of this threshold. The sequential use of this algorithm allows the allocation of more than two crop cultivars (e.g. SC, RC1 and RC2). Therefore, deployment strategies involving two sources of resistance is simulated by:

  1. running the allocation algorithm once to segregate the fields where the susceptible cultivar is grown, and

  2. applying one of the following deployment strategies to the remaining candidate fields:

    • Mosaics: two resistant cultivars (RC1 and RC2, carrying the first and the second resistance sources, respectively) are assigned to candidate fields by re-running the allocation algorithm;

    • Mixtures: both RC1 and RC2 are allocated to all candidate fields;

    • Rotations: RC1 and RC2 are alternatively cultivated in candidate fields, depending on the number of cropping seasons over which a given cultivar is grown before being rotated;

    • Pyramiding: all candidate fields are cultivated with RC12, a resistant cultivar carrying both resistance sources.

References

Rimbaud L., Papa<U+00EF>x J., Rey J.-F., Barrett L. G. and Thrall P. H. (2018). Assessing the durability and efficiency of landscape-based strategies to deploy plant resistance to pathogens. PLoS Computational Biology 14(4):e1006067.

Examples

Run this code
# NOT RUN {
## Generate a landscape consisting in a mosaic of fields cultivated with a susceptible cultivar
## and two resistant cultivars in balanced proportions and high level of spatial aggregation
# }
# NOT RUN {
landscapeTEST1
AgriLand(landscapeTEST1,filename="landscapeTEST1",propSR=2/3,isolSR=3,
propRR=1/2,isolRR=3,strat="MO",Nhost=3,nYears=30,seed=12345,graphic=TRUE)
# }

Run the code above in your browser using DataLab