mlx.VPC: A function to plot VPCs from a Monolix project run.

View source: R/mlx.VPC.R

mlx.VPCR Documentation

A function to plot VPCs from a Monolix project run.

Description

This function allows you to have almost a publication ready VPC plot of a monolix run.

Usage

mlx.VPC(
  project.dir = "../monolix/",
  project.name = "",
  drug = NULL,
  y = NULL,
  disp = "lin",
  obs = TRUE,
  size = 0.5,
  time.unit = "day",
  simulated = FALSE,
  corrected = FALSE,
  colors = c("#4682B4", "#FF0000", "#0080FF")
)

Arguments

project.dir

Absolute or relative name of the folder of the monolix project.

project.name

Name of the monolix project file without *.mlxtran* extension. The project must be in *project.dir*

drug

Text for the legend. Typicaly name of the drug. Can be a **TeX** object from package **latex2exp**

y

Name of the Obs values.

disp

Display in *lin* or *log*. Default to *lin*.

obs

Plot observed data?. Default to *TRUE*.

size

Size of the observed data dots. Default to *0.5*. Useless if *obs = FALSE*.

time.unit

Time unit for the x legend. Default to *"day"*.

simulated

Use simulated Blq data? Default to *FALSE*.

corrected

Dose the predictions are corrected? Default to *FALSE*.

colors

Color palette : order: c(lines and dots, central ribbon, lower and uper ribbon). Default to *c("#4682B4", "#FF0000", "#0080FF")*.

Examples

# getwd()

NicolasAzzopardi/mlxPlot documentation built on March 19, 2023, 7:40 a.m.