sens_plot: Plot sensitivity analysis results

Description Usage Arguments Examples

View source: R/sens_plot.R

Description

Plot sensitivity analysis results

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
sens_plot(data, ...)

## S3 method for class 'sens_each'
sens_plot(
  data,
  dv_name,
  logy = FALSE,
  ncol = NULL,
  lwd = 0.8,
  digits = 3,
  plot_ref = TRUE,
  xlab = "time",
  ylab = dv_name[1],
  grid = FALSE,
  ...
)

## S3 method for class 'sens_grid'
sens_plot(
  data,
  dv_name,
  digits = 2,
  ncol = NULL,
  lwd = 0.8,
  logy = FALSE,
  plot_ref = TRUE,
  ...
)

Arguments

data

output from sens_each() or sens_grid()

...

arguments passed on to methods

dv_name

output column name to plot

logy

if TRUE, y-axis is transformed to log scale

ncol

passed to ggplot2::facet_wrap()

lwd

passed to ggplot2::geom_line()

digits

used to format numbers on the strips

plot_ref

if TRUE, then the reference case will be plotted in a black dashed line

xlab

x-axis title

ylab

y-axis title

grid

if TRUE, plots from the sens_each method will be passed through patchwork::wrap_plots()

Examples

1
2
3
4
mod <- mrgsolve::house()
dose <- mrgsolve::ev(amt = 100)
out <- sens_run(mod, sargs = list(events = dose),  par = "CL,VC") 
sens_plot(out, dv_name = "CP")

mrgsim.sa documentation built on Nov. 30, 2020, 5:08 p.m.