View source: R/plot-obs-vs-pred.R
plotObsVsPred | R Documentation |
Producing observed vs predicted plots
plotObsVsPred(
data,
metaData = NULL,
dataMapping = NULL,
plotConfiguration = NULL,
foldDistance = 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 |
foldDistance |
Numeric values of fold distance lines to display in log plots.
This argument is internally translated into |
smoother |
Optional name of smoother function:
|
plotObject |
An optional |
A ggplot
object
Other molecule plots:
plotBoxWhisker()
,
plotCumulativeTimeProfile()
,
plotDDIRatio()
,
plotGrid()
,
plotHistogram()
,
plotObservedTimeProfile()
,
plotPKRatio()
,
plotPieChart()
,
plotQQ()
,
plotResVsPred()
,
plotResVsTime()
,
plotSimulatedTimeProfile()
,
plotTimeProfile()
,
plotTornado()
# Produce Obs vs Pred plot
obsVsPredData <- data.frame(x = c(1, 2, 1, 2, 3), y = c(5, 0.2, 2, 3, 4))
plotObsVsPred(data = obsVsPredData, dataMapping = ObsVsPredDataMapping$new(x = "x", y = "y"))
# Produce Obs vs Pred plot with linear regression
plotObsVsPred(
data = obsVsPredData,
dataMapping = ObsVsPredDataMapping$new(x = "x", y = "y"),
smoother = "lm"
)
# Produce Obs vs Pred plot with user-defined fold distance lines
plotObsVsPred(
data = obsVsPredData,
dataMapping = ObsVsPredDataMapping$new(x = "x", y = "y"),
plotConfiguration = ObsVsPredPlotConfiguration$new(
xScale = Scaling$log, xAxisLimits = c(0.05, 50),
yScale = Scaling$log, yAxisLimits = c(0.05, 50)
),
foldDistance = c(1, 10)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.