Learn R Programming

morse (version 3.3.4)

plotDoseResponse.reproData: Plot dose-response from reproData objects

Description

This is the generic plotDoseResponse S3 method for the reproData class. It plots the number of offspring per individual-days as a function of concentration at a given target time.

Usage

# S3 method for reproData
plotDoseResponse(
  x,
  xlab = "Concentration",
  ylab = "Nb of offspring per ind.day",
  main = NULL,
  ylim = NULL,
  target.time = NULL,
  style = "ggplot",
  log.scale = FALSE,
  remove.someLabels = FALSE,
  axis = TRUE,
  addlegend = TRUE,
  ...
)

Value

a plot of class ggplot

Arguments

x

an object of class reproData

xlab

a label for the \(X\)-axis, by default Concentration

ylab

a label for the \(Y\)-axis, by default Nb of offspring per ind.day

main

main title for the plot

ylim

\(Y\)-axis limits

target.time

a numeric value corresponding to some observed time points in data

style

graphical backend, can be 'ggplot' or 'generic'

log.scale

if TRUE, displays \(X\)-axis in log-scale

remove.someLabels

if TRUE, removes 75% of \(X\)-axis labels in 'ggplot' style to avoid the label overlap

axis

if TRUE displays ticks and label axis

addlegend

if TRUE, adds a default legend to the plot

...

Further arguments to be passed to generic methods

Details

The function plots the observed values of the reproduction rate (number of reproduction outputs per individual-day) at a given time point as a function of concentration. The 95 % Poisson confidence interval is added to each reproduction rate. It is calculated using function pois.exact from package epitools. As replicates are not pooled in this plot, overlapped points are shifted on the x-axis to help the visualization of replicates.

See Also

pois.exact