plot.mapbayests: Plot predictions from mapbayests object

View source: R/mapbayests.R

plot.mapbayestsR Documentation

Plot predictions from mapbayests object

Description

Plot predictions from mapbayests object

Usage

## S3 method for class 'mapbayests'
plot(x, ..., PREDICTION = c("IPRED", "PRED"))

Arguments

x

A mapbayests object.

...

additional arguments (passed to augment.mapbayests)

PREDICTION

plot either "IPRED", "PRED" or both.

Details

Use this function to plot the results of the estimations, in the form of concentration vs time profiles for every patient of the data set. For additional modifications, you can:

  • see augment.mapbayests to modify the simulation output.

  • add extra ⁠+function(...)⁠ in order to modify the plot as a regular ggplot2 object.

Value

a ggplot object.

Examples

est <- mapbayest(exmodel(ID = 1))
plot(est, end = 48) +
  ggplot2::labs(title = "Awesome prediction")



mapbayr documentation built on July 26, 2023, 5:16 p.m.