plot_freqPatho.Rd
Plots in a .tiff file the dynamics of pathotype frequencies with respect to pathogen adaptation to a specific resistance gene.
plot_freqPatho(
name_gene,
Nlevels_aggressiveness,
I_aggrProp,
nTS,
Nyears,
nTSpY
)
a string specifying the name of the gene under investigation
number of pathotypes with respect to the gene under investigation
a matrix giving the frequency of every pathotype (rows) for every time-step (columns)
number of simulated time-steps
number of simulated cropping seasons
number of time-steps per cropping season
if (FALSE) {
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
)
}