PlotFitTT {morseDR} | R Documentation |
Plotting method for FitTT
objects.
Description
This is the generic plot
S3 method for the FitTT
class. It
plots concentration-response fit under target time analysis.
The fitted curve represents the
response at
the target time as a function of the concentration of chemical compound;
When adddata = TRUE
the black dots depict the observation data
at each tested concentration. Note that since our model does not take
inter-replicate variability into consideration, replicates are systematically
pooled in this plot.
The function plots both 95\
(by default the grey area around the fitted curve) and 95\
intervals (as black segments if
adddata = TRUE
), either binomial, poisson or normal for respectivelly,
BinaryFitTT
, CountFitTT
andContinuousFitTT
.
Both types of intervals are taken at the same level. Typically
a good fit is expected to display a large overlap between the two 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. This spaghetti plot consists of the representation of simulated curves using parameter values sampled in the posterior distribution (10\ taken for this sample).
Usage
## S3 method for class 'BinaryFitTT'
plot(
x,
xlab = "Concentration",
ylab = "Probability",
main = NULL,
display.conc = NULL,
spaghetti = FALSE,
adddata = FALSE,
addlegend = FALSE,
log.scale = FALSE,
...
)
## S3 method for class 'ContinuousFitTT'
plot(
x,
xlab = "Concentration",
ylab = "Measure",
main = NULL,
display.conc = NULL,
spaghetti = FALSE,
adddata = FALSE,
addlegend = FALSE,
log.scale = FALSE,
...
)
## S3 method for class 'CountFitTT'
plot(
x,
xlab = "Concentration",
ylab = "Count",
main = NULL,
display.conc = NULL,
spaghetti = FALSE,
adddata = FALSE,
addlegend = FALSE,
log.scale = FALSE,
...
)
Arguments
x |
an object of class |
xlab |
a label for the |
ylab |
a label for the |
main |
main title for the plot |
display.conc |
Vector of numeric on which the plot is done. Default is
|
spaghetti |
if |
adddata |
if |
addlegend |
if |
log.scale |
if |
... |
Further arguments to be passed to generic methods |
Value
a plot of class ggplot