plot.PKPDsim_data: Generic plotting function for PKPDsim objects

Description Usage Arguments

Description

Generic plotting function for PKPDsim objects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'PKPDsim_data'
plot(x, only_obs = TRUE, obs_x = NULL,
  regimen = NULL, lines = NULL, show_single = list(obs = TRUE, spaghetti =
  TRUE, ci = FALSE, median = FALSE, regimen = TRUE),
  show_population = list(obs = FALSE, spaghetti = TRUE, ci = FALSE, median =
  TRUE, regimen = TRUE), ci = c(0.05, 0.95), theme = NULL, xlim = NULL,
  ylim = NULL, width = 6, height = 4, legend = NULL,
  show_series = NULL, show = NULL, log_y = FALSE, target = NULL,
  target_as_ribbon = FALSE, scale_colour_values = NULL,
  scale_linetype_values = NULL, labels = list(x = "Time (hours)", y =
  "Concentration (mg/L)"), return_svg = FALSE, ...)

Arguments

x

PKPDsim-simulated x

only_obs

Only plot observation compartment

obs_x

Also add observation (e.g. TDM) x

regimen

regimen specification from PKPDsim::new_regimen()

lines

show lines?

show_single

definition for plots of single patients

show_population

definition for plots of populations

ci

confidence interval, specified as vector of two values between 0 and 1, default is 'c(0.05, 0.95)'.

theme

theme

xlim

xlim passed to ggplot

ylim

ylim passed to ggplot

width

width of plot if saved

height

height of plot if saved

legend

list of labels that override defaults, e.g. list("individual" = "ind.pred")

show_series

show only specified types / series

show

definition of what to show in plot, overrides 'show_single' and 'show_population'. NULL by default

log_y

log y axis?

target

vector of target values (dependent variable), will be shown as vertical lines

target_as_ribbon

show target (only when vector of 2) as ribbon (TRUE), or just as two lines (FALSE)

scale_colour_values

values for colour scale

scale_linetype_values

values for linetype scale

labels

list with 'x' and 'y' labels

return_svg

return the svg plot definition instead of ggplot2 object. FALSE by default

...

rest


ronkeizer/PKPDplot documentation built on May 27, 2019, 1:50 p.m.