View source: R/plot.reproFitTT.R
plot.reproFitTT | R Documentation |
reproFitTT
objectsThis is the generic plot
S3 method for the reproFitTT
class.
It plots the concentration-effect fit under target time reproduction
analysis.
## S3 method for class 'reproFitTT'
plot(
x,
xlab = "Concentration",
ylab = "Nb of offspring per ind/day",
main = NULL,
fitcol = "orange",
fitlty = 1,
fitlwd = 1,
spaghetti = FALSE,
cicol = "orange",
cilty = 2,
cilwd = 1,
ribcol = "grey70",
addlegend = FALSE,
log.scale = FALSE,
style = "ggplot",
...
)
x |
an object of class |
xlab |
a label for the |
ylab |
a label for the |
main |
main title for the plot |
fitcol |
color of the fitted curve |
fitlty |
line type of the fitted curve |
fitlwd |
width of the fitted curve |
spaghetti |
if |
cicol |
color of the 95 % credible limits |
cilty |
line type of the 95 % credible limits |
cilwd |
width of the 95 % credible limits |
ribcol |
color of the ribbon between lower and upper credible limits.
Transparent if |
addlegend |
if |
log.scale |
if |
style |
graphical backend, can be |
... |
Further arguments to be passed to generic methods |
The fitted curve represents the estimated reproduction rate at the target time as a function of the chemical compound concentration. The function plots 95% credible intervals for the estimated reproduction rate (by default the grey area around the fitted curve). Typically a good fit is expected to display a large overlap between the two types of intervals. If spaghetti = TRUE, the credible intervals are represented by two dotted lines limiting the credible band, and a spaghetti plot is added to this band. It consists of the representation of simulated curves using parameter values sampled in the posterior distribution (10% of the MCMC chains are randomly taken for this sample).
a plot of class ggplot
When style = "generic"
, the function calls the generic function
plot
When style = "ggplot"
, the function return an object of class
ggplot
, see function ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.