plot.breathtestfit {breathtestcore}R Documentation

S3 plot method for breathtestfit

Description

Plots 13C data and fits.

Usage

## S3 method for class 'breathtestfit'
plot(
  x,
  inc = 5,
  method_t50 = "maes_ghoos",
  line_size = 1,
  point_size = NULL,
  ...
)

Arguments

x

object of class breathtestfit, as returned by nls_fit, nlme_fit, null_fit or stan_fit; stan_fit is in package breathteststan,

inc

Increment for fitted curve plot in minutes

method_t50

Method for t50: "maes_ghoos", "bluck_coward" or "maes_ghoos_scintigraphy"

line_size

optional line width; can improve look for printouts

point_size

optional point size; determined dynamically when NULL

...

other parameters passed to methods. Not used

Examples

data = list(
  A = simulate_breathtest_data(n_records = 6, seed = 100),
  B = simulate_breathtest_data(n_records = 4, seed = 187) 
)
# cleanup_data combines the list into a data frame
x = nls_fit(cleanup_data(data))
plot(x)

[Package breathtestcore version 0.8.1 Index]