plot.PredInactivationMCMC: Plot of PredInactivationMCMC Object

View source: R/methods_s3_plot.R

plot.PredInactivationMCMCR Documentation

Plot of PredInactivationMCMC Object

Description

Plots the prediction interval generated by predict_inactivation_MCMC.

Usage

## S3 method for class 'PredInactivationMCMC'
plot(x, y = NULL, ..., make_gg = TRUE)

Arguments

x

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

Details

The plot generated in ggplot (default) generates a dashed line with the mean of the MC simulations. Moreover, a ribbon with the 2 first quantiles (i.e. columns 3 and 4) is generated.

The plot generated with base R (make_gg = FALSE) generates a solid line wth the mean of the MC simulations. Each one of the other quantiles included in the data frame are added with different

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.