Learn R Programming

landsepi (version 0.0.8)

plotevolQR: Plotting pathotype frequencies

Description

Plot the dynamic of pathotype frequencies in a tiff file.

Usage

plotevolQR(pathRES, nIncr, trait, I_aggrProp, D, nTS, nYears, nTSpY)

Arguments

pathRES

the path of the repository where the graphic will be generated

nIncr

number of pathotypes

trait

index of the evolving trait (1 to 4 for major genes, 5 to 8 for quantitative resistance traits against infection rate (5), latent period (6), reproduction rate (7) and infectious period duration (8))

I_aggrProp

a matrix giving the frequency of every pathotype (row) for every time-step (columns)

D

durability of the trait

nTS

number of simulated time-steps

nYears

number of simulated years

nTSpY

number of time-steps per year

Examples

Run this code
# NOT RUN {
freqMatrix <- matrix(0, nrow=2, ncol=100)
freqMatrix[2,26:100] <- (26:100)/100
freqMatrix[1,] <- 1-freqMatrix[2,]
plotevolQR(getwd(), nIncr=2, trait=1, freqMatrix, D=25, nTS=100,nYears=10,nTSpY=10)
# }

Run the code above in your browser using DataLab