plot_reg: Plot Regression Curves

Description Usage Arguments Details Value Examples

View source: R/plot.reg.r

Description

Plots regression curves for each set of records defined using by. A log-linear plot will be made for each curve.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
plot_reg(
  x,
  by = character(0),
  th = NA,
  bloqvar = "bloq",
  timevar = "tad",
  depvar = "dv",
  timelab = "timevar",
  deplab = "depvar",
  exclvar = NA,
  plotdir = NA,
  ...
)

Arguments

x

input dataset name

by

column names in x indicating grouping variables

th

file name of file with half-life estimation information for each curve

bloqvar

variable name containing the BLOQ flag (0: no, 1: yes)

timevar

variable name containing the actual sampling time after dose

depvar

variable name containing the dependent variable (e.g., concentration)

timelab

X-axis label (default: "timevar")

deplab

Y-axis label (default: "depvar")

exclvar

variable name containing information about points to be excluded (these should have exclvar = 1)

plotdir

directory where individual plot files will be saved

...

ignored

Details

If elimination half-life was estimated for that curve, the following will be indicated in the plot:

Input dataset:

Value

(invisible) plotdir. If the attribute 'plotdir' is empty, plots will be generated in standard output, otherwise plots will be saved as PNG file in the designated directory.

Examples

1
2
example(est.thalf)
x %>% filter(dv > 0) %>% plot_reg(by = 'subject', th = th)

qpNCA documentation built on Aug. 16, 2021, 5:08 p.m.