View source: R/plot-res-vs-pred.R
plotResVsPred | R Documentation |
Producing residuals vs predicted plots
plotResVsPred(
data,
metaData = NULL,
dataMapping = NULL,
plotConfiguration = NULL,
smoother = NULL,
plotObject = NULL
)
data |
A data.frame to use for plot. |
metaData |
A named list of information about |
dataMapping |
A |
plotConfiguration |
An optional |
smoother |
Optional name of smoother function:
|
plotObject |
An optional |
A ggplot
object
Other molecule plots:
plotBoxWhisker()
,
plotCumulativeTimeProfile()
,
plotDDIRatio()
,
plotGrid()
,
plotHistogram()
,
plotObsVsPred()
,
plotObservedTimeProfile()
,
plotPKRatio()
,
plotPieChart()
,
plotQQ()
,
plotResVsTime()
,
plotSimulatedTimeProfile()
,
plotTimeProfile()
,
plotTornado()
# Produce Obs vs Pred plot
resVsPredData <- data.frame(x = c(1, 2, 1, 2, 3), y = c(5, 0.2, 2, 3, 4))
plotResVsPred(data = resVsPredData, dataMapping = ResVsPredDataMapping$new(x = "x", y = "y"))
# Produce Res vs Pred plot with linear regression
plotResVsPred(
data = resVsPredData,
dataMapping = ResVsPredDataMapping$new(x = "x", y = "y"),
smoother = "lm"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.