Learn R Programming

mapbayr (version 0.10.2)

plot.mapbayests: Plot predictions from mapbayests object

Description

Plot predictions from mapbayests object

Usage

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

Value

a ggplot object.

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.

Examples

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


Run the code above in your browser using DataLab