plot.SimulInactivation: Plot of SimulInactivation Object

View source: R/methods_s3_plot.R

plot.SimulInactivationR Documentation

Plot of SimulInactivation Object

Description

Plots the predicted evolution of the logarithmic count with time for an instance of SimulInactivation.

Usage

## S3 method for class 'SimulInactivation'
plot(
  x,
  y = NULL,
  ...,
  make_gg = TRUE,
  plot_temp = FALSE,
  label_y1 = "logN",
  label_y2 = "Temperature",
  ylims = NULL
)

Arguments

x

The object of class SimulInactivation to plot.

y

ignored

...

additional arguments passed to plot.

make_gg

logical. If TRUE, the plot is created using ggplot2. Otherwise, the plot is crated with base R. TRUE by default.

plot_temp

logical. Whether the temperature profile will be added to the plot. FALSE by default.

label_y1

Label of the principal y-axis.

label_y2

Label of the secondary y-axis.

ylims

Numeric vector of length 2 with the Limits of the y-axis. NULL by default (0, max_count).

Value

If make_gg = FALSE, the plot is created. Otherwise, an an instance of ggplot is generated, printed and returned.


albgarre/bioinactivation documentation built on Nov. 27, 2022, 9:19 a.m.