View source: R/plot-ddiratio.R
plotDDIRatio | R Documentation |
Producing DDI Ratio plots
plotDDIRatio(
data,
metaData = NULL,
dataMapping = NULL,
plotConfiguration = NULL,
residualsVsObserved = NULL,
foldDistance = NULL,
deltaGuest = NULL,
plotObject = NULL
)
data |
A data.frame to use for plot. |
metaData |
A named list of information about |
dataMapping |
A |
plotConfiguration |
An optional |
residualsVsObserved |
Optional logical value defining if DDI Ratio plot is drawn as residuals vs observed, instead of predicted vs observed. |
foldDistance |
Numeric values of fold distance lines to display in log plots.
This argument is internally translated into |
deltaGuest |
Numeric value parameter of Guest function |
plotObject |
An optional |
A ggplot
object
For examples, see: https://www.open-systems-pharmacology.org/TLF-Library/articles/pk-ratio-vignette.html
Other molecule plots:
plotBoxWhisker()
,
plotCumulativeTimeProfile()
,
plotGrid()
,
plotHistogram()
,
plotObsVsPred()
,
plotObservedTimeProfile()
,
plotPKRatio()
,
plotPieChart()
,
plotQQ()
,
plotResVsPred()
,
plotResVsTime()
,
plotSimulatedTimeProfile()
,
plotTimeProfile()
,
plotTornado()
# Produce DDI Ratio plot
ddiData <- data.frame(x = c(1, 2, 1, 2, 3), y = c(5, 0.2, 2, 3, 4))
plotDDIRatio(data = ddiData, dataMapping = DDIRatioDataMapping$new(x = "x", y = "y"))
# Produce DDI Ratio plot with user-defined horizontal lines
plotDDIRatio(
data = ddiData,
dataMapping = DDIRatioDataMapping$new(x = "x", y = "y"),
foldDistance = c(1, 10),
deltaGuest = 1.25,
residualsVsObserved = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.