Learn R Programming

morseTKTD (version 0.1.3)

PlotData: Plotting method for survDataVar objects

Description

This is the generic plot S3 method for the survDataVar class. It plots the number of survivors as a function of time.

Usage

# S3 method for SurvDataVarExp
plot(
  x,
  xlab = "Time",
  ylab = "Number of survivors",
  main = NULL,
  one_plot = FALSE,
  add_legend = FALSE,
  ...
)

# S3 method for SurvDataCstExp plot( x, xlab = "Time", ylab = "Number of survivors", main = NULL, one_plot = FALSE, ... )

Value

an object of class ggplot, see function ggplot

Arguments

x

an object of class survData.

xlab

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

ylab

a label for the \(Y\)-axis, by default Number of survivors.

main

main title for the plot.

one_plot

if TRUE, draws all the points in one plot instead of one per replicate or conc.

add_legend

if TRUE, add the legend to the plot.

...

Further arguments to be passed to generic methods.