Learn R Programming

morseTKTD (version 0.1.3)

PlotPPC: Plot an object PPC

Description

The coordinates of black points are the observed values of the number of survivors (pooled replicates) for a given concentration (\(X\)-axis) and the corresponding predicted values (\(Y\)-axis). 95\ value, colored in green if this interval contains the observed value and in red otherwise. The bisecting line (y = x) is added to the plot in order to see if each prediction interval contains each observed value. As replicates are shifted on the x-axis, this line is represented by steps.

Usage

# S3 method for PPC
plot(
  x,
  xlab = "Observation",
  ylab = "Prediction",
  main = NULL,
  dodge.width = 0,
  ...
)

Value

an object of class ggplot, see function ggplot

Arguments

x

an object of class PPC

xlab

label of the x-axis

ylab

label of the y-axis

main

tital of the graphic

dodge.width

dodging width. Dodging preserves the vertical position of an geom while adjusting the horizontal position.

...

Further arguments to be passed to generic methods See position_dodge for further details.