plot_freqPatho {landsepi} | R Documentation |
Plotting pathotype frequencies
Description
Plots in a .tiff file the dynamics of pathotype frequencies with respect to pathogen adaptation to a specific resistance gene.
Usage
plot_freqPatho(
name_gene,
Nlevels_aggressiveness,
I_aggrProp,
nTS,
Nyears,
nTSpY
)
Arguments
name_gene |
a string specifying the name of the gene under investigation |
Nlevels_aggressiveness |
number of pathotypes with respect to the gene under investigation |
I_aggrProp |
a matrix giving the frequency of every pathotype (rows) for every time-step (columns) |
nTS |
number of simulated time-steps |
Nyears |
number of simulated cropping seasons |
nTSpY |
number of time-steps per cropping season |
Examples
## Not run:
freqMatrix <- matrix(0, nrow = 2, ncol = 100)
freqMatrix[2, 26:100] <- (26:100) / 100
freqMatrix[1, ] <- 1 - freqMatrix[2, ]
plot_freqPatho(
index_gene = 1,
Nlevels_aggressiveness = 2,
freqMatrix,
nTS = 100,
Nyears = 10,
nTSpY = 10
)
## End(Not run)
[Package landsepi version 1.4.0 Index]