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 FitTT

xlab

a label for the X-axis, default is Concentration

ylab

a label for the Y-axis. For BinaryFitTT default is Probability; For CountFitTT, default is Count, and For ContinuousFitTT, default is Measure.

main

main title for the plot

display.conc

Vector of numeric on which the plot is done. Default is NULL to use the concentration given in the FitTT object.

spaghetti

if TRUE, the credible interval is represented by multiple curves

adddata

if TRUE, adds the observed data with confidence intervals to the plot

addlegend

if TRUE, adds a default legend to the plot

log.scale

if TRUE, displays X-axis in log-scale

...

Further arguments to be passed to generic methods

Value

a plot of class ggplot


[Package morseDR version 0.1.2 Index]