Learn R Programming

bioinactivation (version 1.3.0)

plot.FitInactivationMCMC: Plot of FitInactivationMCMC Object

Description

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

Usage

# S3 method for FitInactivationMCMC
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 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).