plot.wa {analogue} | R Documentation |
Plot diagnostics for a weighted averaging model
Description
Two plots (selectable by which
) are currently available: a
plot of estimated against observed values, a plot of residuals against
estimated values.
Usage
## S3 method for class 'wa'
plot(x,
which = 1:2,
caption = c("Inferred vs Observed", "Residuals vs Fitted"),
max.bias = TRUE,
n.bias = 10,
sub.caption = NULL,
main = "",
ask = prod(par("mfcol")) < length(which) &&
dev.interactive(),
...,
panel = if (add.smooth) panel.smooth else points,
add.smooth = getOption("add.smooth"))
Arguments
x |
an object of class |
which |
which aspects of the |
caption |
captions to appear above the plots. |
max.bias |
logical, should max bias lines be added to residuals. |
n.bias |
numeric, number of sections to calculate maximum bias for. |
sub.caption |
common title-above figures if there are multiple;
used as ‘sub’ (s.‘title’) otherwise. If |
main |
title to each plot-in addition to the above
|
ask |
logical; if |
... |
graphical arguments passed to other graphics functions. |
panel |
panel function. The useful alternative to
|
add.smooth |
logical indicating if a smoother should be added to
fitted \& residuals plots; see also |
Details
This plotting function is modelled closely on plot.lm
and many of the conventions and defaults for that function are
replicated here.
sub.caption
- by default the function call - is shown as a
subtitle (under the x-axis title) on each plot when plots are on
separate pages, or as a subtitle in the outer margin (if any) when
there are multiple plots per page.
Value
One or more plots, drawn on the current device.
Author(s)
Gavin L. Simpson. Code borrows heavily from plot.lm
.
See Also
Examples
## see full example in ?wa