Producing Histograms
Usage
plotQQ(
data = NULL,
metaData = NULL,
y = NULL,
dataMapping = NULL,
plotConfiguration = NULL,
plotObject = NULL
)
Arguments
- data
A data.frame to use for plot.
- metaData
A named list of information about
data
such as thedimension
andunit
of its variables.- y
Numeric values to plot along the
y
axis. Only used instead ofdata
ifdata
isNULL
.- dataMapping
A
QQDataMapping
object mappingy
and aesthetic groups to their variable names ofdata
.- plotConfiguration
An optional
QQPlotConfiguration
object defining labels, grid, background and watermark.- plotObject
An optional
ggplot
object on which to add the plot layer
See also
Other molecule plots:
plotBoxWhisker()
,
plotCumulativeTimeProfile()
,
plotDDIRatio()
,
plotGrid()
,
plotHistogram()
,
plotObsVsPred()
,
plotObservedTimeProfile()
,
plotPKRatio()
,
plotPieChart()
,
plotResVsPred()
,
plotResVsTime()
,
plotSimulatedTimeProfile()
,
plotTimeProfile()
,
plotTornado()
Examples
# Produce QQ plot of normally distributed data
plotQQ(y = rnorm(100))
# Produce QQ plot of normally distributed data split by group
qqData <- data.frame(
residuals = c(rnorm(100), rnorm(100)),
groups = c(rep("Group A", 100), rep("Group B", 100))
)
plotQQ(
data = qqData,
dataMapping = QQDataMapping$new(y = "residuals", group = "groups")
)