Producing residuals vs time plots
Usage
plotResVsTime(
data,
metaData = NULL,
dataMapping = NULL,
plotConfiguration = NULL,
smoother = NULL,
plotObject = NULL
)Arguments
- data
A data.frame to use for plot.
- metaData
A named list of information about
datasuch as thedimensionandunitof its variables.- dataMapping
A
ResVsTimeDataMappingobject mappingx,yand aesthetic groups to their variable names ofdata.- plotConfiguration
An optional
ResVsTimeConfigurationobject defining labels, grid, background and watermark.- smoother
Optional name of smoother function:
"loess"for loess regression"lm"for linear regression
- plotObject
An optional
ggplotobject on which to add the plot layer
See also
Other molecule plots:
plotBoxWhisker(),
plotCumulativeTimeProfile(),
plotDDIRatio(),
plotGrid(),
plotHistogram(),
plotObsVsPred(),
plotObservedTimeProfile(),
plotPKRatio(),
plotPieChart(),
plotQQ(),
plotResVsPred(),
plotSimulatedTimeProfile(),
plotTimeProfile(),
plotTornado()
Examples
# Produce Obs vs Pred plot
resVsTimeData <- data.frame(x = c(1, 2, 1, 2, 3), y = c(5, 0.2, 2, 3, 4))
plotResVsTime(data = resVsTimeData, dataMapping = ResVsTimeDataMapping$new(x = "x", y = "y"))
# Produce Res vs Time plot with linear regression
plotResVsTime(
data = resVsTimeData,
dataMapping = ResVsTimeDataMapping$new(x = "x", y = "y"),
smoother = "lm"
)