Learn R Programming

bioinactivation (version 1.3.0)

plot.SimulInactivation: Plot of SimulInactivation Object

Description

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

Usage

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

Value

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

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).