ggplot.tdmorefit: Create a ggplot object from a 'tdmorefit' object. The plot...

Description Usage Arguments

View source: R/plot.R

Description

Create a ggplot object from a 'tdmorefit' object. The plot can be used as normal, but also supports adding specific tdmore layers, such as 'ipred'.

Usage

1
2
3
4
## S3 method for class 'tdmorefit'
ggplot(data = NULL, mapping = aes(),
  newdata = NULL, regimen = NULL, parameters = NULL,
  covariates = NULL, ..., environment = parent.frame())

Arguments

data

A tdmorefit object

mapping

Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot.

newdata

A data.frame with new data and the columns to predict, or a numeric vector to specify times, and predict all model output or NULL to interpolate between 0 and the maximum known times

regimen

Treatment regimen

parameters

Set parameters. If missing, or if only part of the parameters are specified, the other parameters are taken from the tdmorefit object

covariates

the model covariates, named vector, or data.frame with column 'TIME', and at least TIME 0

...

Other arguments passed on to methods. Not currently used.

environment

DEPRECATED. Used prior to tidy evaluation.


tdmore-dev/tdmore documentation built on Nov. 15, 2018, 9:45 p.m.