Produces boxplots of the deviations of the observed values from the smoothed values over values of x.
plotDeviationsBoxes(data, observed, smoothed, x.factor,
x.title = NULL, y.titles = NULL,
facet.x = ".", facet.y = ".", labeller = NULL,
df, deviations.plots = "absolute",
ggplotFuncs = NULL, ...)
A data.frame
containing the observed and smoothed values
from which the deviations are to be computed.
A character
specifying the response variable for which the
observed values are supplied.
A character
specifying the smoothed response variable,
corresponding to observed
, for which values are supplied.
Title for the x-axis. If NULL
then set to xname
.
A character
giving the titles for the y-axis,
one for each plot specified deviations.plots
.
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.
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.
A numeric
specifying the smoothing degrees of freedom used in
producing the response.smoothed
and which is to be used in labelling
the plot.
A character
specifying whether
absolute
and/or relative
deviations are to be plotted.
allows passing of arguments to plotLongitudinal
.
A data.frame
containing the median deviations that have been plotted.
# NOT RUN {
data(exampleData)
plotDeviationsBoxes(longi.dat, observed = "Area", smoothed = "Area.smooth",
x.factor="Days", facet.x = ".", facet.y= ".", df =5)
# }
Run the code above in your browser using DataLab