Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.LCx

Plotting method for LCx objects


Description

This is the generic plot S3 method for the \codeLCx class. It plots the survival probability as a function of concentration.

Usage

## S3 method for class 'LCx'
plot(
  x,
  xlab = "Concentration",
  ylab = "Survival probability \n median and 95 CI",
  main = NULL,
  subtitle = NULL,
  ...
)

Arguments

x

An object of class LCx.

xlab

A label for the X-axis, by default Concentration.

ylab

A label for the Y-axis, by default Survival probability median and 95 CI.

main

A main title for the plot.

subtitle

A subtitle for the plot

...

Further arguments to be passed to generic methods.

Examples

# (1) Load the data
data("propiconazole")

# (2) Create an object of class 'survData'
dataset <- survData(propiconazole)

## Not run: 
# (3) Run the survFit function with model_type SD (or IT)
out_SD <- survFit(dataset, model_type = "SD")

# (4) estimate LC50 at time 4
LCx_SD <- LCx(out_SD, X = 50, time_LCx = 4)

# (5) plot the object of class 'LCx'
plot(LCx_SD)

## End(Not run)

morse

Modelling Tools for Reproduction and Survival Data in Ecotoxicology

v3.3.1
GPL (>= 2)
Authors
Virgile Baudrot [aut], Sandrine Charles [aut], Marie Laure Delignette-Muller [aut], Wandrille Duchemin [ctb], Benoit Goussen [ctb], Nils Kehrein [ctb], Guillaume Kon-Kam-King [ctb], Christelle Lopes [ctb], Philippe Ruiz [aut], Alexander Singer [ctb], Philippe Veber [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.