plot.FitInactivation: Plot of FitInactivation Object

View source: R/methods_s3_plot.R

plot.FitInactivationR Documentation

Plot of FitInactivation Object

Description

Plots a comparison between the experimental data provided and the prediction produced by the model parameters adjusted for an instance of FitInactivation.

Usage

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

Arguments

x

the object of class FitInactivation 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.