plotDeviationsBoxes {growthPheno} | R Documentation |
Produces boxplots of the deviations of the observed values from the smoothed values over values of x.
Description
Produces boxplots of the deviations of the observed values from the smoothed values over values of x.
Usage
plotDeviationsBoxes(data, observed, smoothed, x.factor,
x.title = NULL, y.titles = NULL,
facet.x = ".", facet.y = ".",
facet.labeller = NULL,
facet.scales = "fixed",
angle.x = 0,
deviations.plots = "absolute",
ggplotFuncs = NULL, printPlot = TRUE, ...)
Arguments
data |
A |
observed |
A |
smoothed |
A |
x.factor |
|
x.title |
Title for the x-axis. If |
y.titles |
A |
facet.x |
A |
facet.y |
A |
facet.labeller |
A |
facet.scales |
A |
angle.x |
A |
deviations.plots |
A |
ggplotFuncs |
A |
printPlot |
A |
... |
allows passing of arguments to |
Value
A list whose components are named absolute
and relative
; a
component will contain an object of class "ggplot
" when the plot has been
requested using the deviations.plots
argument and a NULL
otherwise.
The objects can be plotted using print
.
Author(s)
Chris Brien
See Also
plotMedianDeviations
, probeSmoothing
, ggplot
.
Examples
data(exampleData)
plotDeviationsBoxes(longi.dat, observed = "PSA", smoothed = "sPSA",
x.factor="DAP", facet.x.pf = ".", facet.y= ".", df =5)