plot.beeSurvPred {BeeGUTS} | R Documentation |
beeSurvPred
objectsThis is the generic plot
S3 method for the beeSurvPred
class. It plots the predicted number of survivors for the exposure concentration entered by the user.
## S3 method for class 'beeSurvPred'
plot(
x,
...,
xlab = "Time [d]",
ylab1 = "Survival probability",
ylab2 = "Concentration",
main = paste("Predictions results for a BeeGUTS", x$modelType, "calibrated for",
x$beeSpecies)
)
x |
An object of class |
... |
Additional parameters to generic plot functions (not used) |
xlab |
A character string for the label of the x-axis |
ylab1 |
A character string for the label of the y-axis of the survivor plots |
ylab2 |
A character string for the label of the y-axis of the concentration plots |
main |
A character string for the title label plot |
A graphic with results of the forward prediction
dataPredict <- data.frame(time = c(1:10, 1:10, 1:10),
conc = c(rep(5, 10), rep(10, 10), rep(15, 10)),
replicate = c(rep("rep1", 10), rep("rep2", 10), rep("rep3", 10)),
NSurv = c(rep(5, 10), rep(10, 10), rep(15, 10)))
data(fitBetacyfluthrin_Chronic)
prediction <- predict(fitBetacyfluthrin_Chronic, dataPredict)
plot(prediction)