View source: R/plot-cumulative-time-profile.R
plotCumulativeTimeProfile | R Documentation |
Producing Cumulative Time Profile plots
plotCumulativeTimeProfile(
data = NULL,
metaData = NULL,
dataMapping = NULL,
colorPalette = NULL,
plotConfiguration = NULL,
plotObject = NULL
)
data |
A data.frame to use for plot. |
metaData |
A named list of information about |
dataMapping |
A |
colorPalette |
Optional character values defining a |
plotConfiguration |
An optional |
plotObject |
An optional |
A ggplot
object
Other molecule plots:
plotBoxWhisker()
,
plotDDIRatio()
,
plotGrid()
,
plotHistogram()
,
plotObsVsPred()
,
plotObservedTimeProfile()
,
plotPKRatio()
,
plotPieChart()
,
plotQQ()
,
plotResVsPred()
,
plotResVsTime()
,
plotSimulatedTimeProfile()
,
plotTimeProfile()
,
plotTornado()
# Define data to be plotted as cumulative time profile
time <- seq(1, 10)
data <- data.frame(
x = rep(time),
y = c(exp(-time / 10), 1 - exp(-time / 10)),
legend = rep(c("decreasing area", "increasing area"), each = 10)
)
# Produce a Cumulative Time Profile plot
plotCumulativeTimeProfile(
data = data,
dataMapping = CumulativeTimeProfileDataMapping$new(x = "x", y = "y", fill = "legend")
)
# Produce a Cumulative Time Profile plot with a ggplot2 color palette
plotCumulativeTimeProfile(
data = data,
dataMapping = CumulativeTimeProfileDataMapping$new(
x = "x",
y = "y",
fill = "legend"
),
colorPalette = "Set1"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.