plot.NpdeData: Plots a NpdeData object

View source: R/plotNpde-methods.R

plot.NpdeDataR Documentation

Plots a NpdeData object

Description

Plots the data in a NpdeData object

Usage

## S3 method for class 'NpdeData'
plot(x, y, ...)

Arguments

x

a NpdeData object

y

unused, here for compatibility with the base plot function

...

additional graphical parameters to be passed on to the plot

Details

The default plot is a spaghetti plot of all the data, with a line joining the observations for each subject. If censored data is present, it is shown with a different symbol and colour.

Value

currently does not return anything, use plot(x, plot.type="data") on the npdeObject x (TODO; a ggplot object)

References

K. Brendel, E. Comets, C. Laffont, C. Laveille, and F.Mentre. Metrics for external model evaluation with an application to the population pharmacokinetics of gliclazide. Pharmaceutical Research, 23:2036–49, 2006.

See Also

set.plotoptions

Examples


data(theopp)

x<-npdeData(theopp,name.group="ID",name.predictor="Time",name.response="Conc",
name.covariates=c("Wt"),units=list(x="hr",y="mg/L",covariates="kg"))
plot(x)


npde documentation built on July 9, 2023, 5:20 p.m.