Learn R Programming

morse (version 3.3.4)

plot.survDataVarExp: Plotting method for survDataVarExp objects

Description

This is the generic plot S3 method for the survDataVarC 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,
  facetting_level = NULL,
  ...
)

Value

an object of class ggplot, see function ggplot

Arguments

x

an object of class survDataVarExp

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

facetting_level

a vector of characters to rank replicates in the multi plot (i.e. one.plot == FALSE)

...

Further arguments to be passed to generic methods