plotDeviationsBoxes

0th

Percentile

Produces boxplots of the deviations of the observed values from the smoothed values over values of x.

Produces boxplots of the deviations of the observed values from the smoothed values over values of x.

Keywords
manip, hplot
Usage
plotDeviationsBoxes(data, observed, smoothed, x.factor,
x.title = NULL, y.titles = NULL,
facet.x = ".", facet.y = ".", labeller = NULL,
df, deviations.plots = "absolute",
ggplotFuncs = NULL, ...)
Arguments
data

A data.frame containing the observed and smoothed values from which the deviations are to be computed.

observed

A character specifying the response variable for which the observed values are supplied.

smoothed

A character specifying the smoothed response variable, corresponding to observed, for which values are supplied.

x.factor

A character giving the factor to be plotted on the x-axis.

x.title

Title for the x-axis. If NULL then set to xname.

y.titles

A character giving the titles for the y-axis, one for each plot specified deviations.plots.

facet.x

A data.frame giving the variable to be used to form subsets to be plotted in separate columns of plots. Use "." if a split into columns is not wanted. For which.plots set to methodcompare or dfcompare facet.x is ignored.

facet.y

A data.frame giving the variable to be used to form subsets to be plotted in separate rows of plots. Use "." if a split into columns is not wanted.

labeller

A ggplot function for labelling the facets of a plot produced using the ggplot function. For more information see ggplot.

df

A numeric specifying the set of degrees of freedom to be probed.

deviations.plots

A character specifying whether absolute and/or relative deviations are to be plotted.

ggplotFuncs

A list, each element of which contains the results of evaluating a ggplot function. It is created by calling the list function with a ggplot function call for each element.

...

allows passing of arguments to plotLongitudinal.

Value

A data.frame containing the median deviations that have been plotted.

plotMedianDeviations, probeSmoothing, ggplot.

Aliases
• plotDeviationsBoxes
Examples
# NOT RUN {
data(exampleData)

plotDeviationsBoxes(longi.dat, observed = "Area", smoothed = "Area.smooth",
x.factor="Days", facet.x = ".", facet.y= ".", df =5)
# }

Documentation reproduced from package growthPheno, version 1.0-13, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.