Learn R Programming

morse (version 3.3.4)

plot.MFx: Plotting method for MFx objects

Description

This is the generic plot S3 method for the MFx class. It plots the survival probability as a function of the multiplication factor applied or as a function of time.

Usage

# S3 method for MFx
plot(
  x,
  x_variable = "MFx",
  xlab = NULL,
  ylab = "Survival probability \n median and 95 CI",
  main = NULL,
  log_scale = FALSE,
  ncol = 3,
  ...
)

Value

a plot of class ggplot

Arguments

x

An object of class MFx.

x_variable

A character to define the variable for the \(X\)-axis, either "MFx" or "Time". The default is "MFx".

xlab

A label for the \(X\)-axis, by default NULL and depend on the argument x_variable.

ylab

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

main

A main title for the plot.

log_scale

If TRUE, the x-axis is log-scaled. Default is FALSE.

ncol

An interger for the number of columns when several panels are plotted.

...

Further arguments to be passed to generic methods.