Learn R Programming

pharmr (version 1.4.0)

plot_individual_predictions: plot_individual_predictions

Description

Plot DV and predictions grouped on individuals

Usage

plot_individual_predictions(model, predictions, individuals = NULL)

Value

(alt.Chart) Plot

Arguments

model

(Model) Previously run Pharmpy model.

predictions

(data.frame) One column for each type of prediction

individuals

(array(numeric) (optional)) A vector of individuals to include. NULL for all individuals

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
res <- load_example_modelfit_results("pheno")
plot_individual_predictions(model, res$predictions, individuals=c(1, 2, 3, 4, 5))
}

Run the code above in your browser using DataLab