duewer.plot(x, ...)
## S3 method for class 'default':
duewer.plot(x,s,mu=median(x),sigma=mad(x), s0=median(s), labels=NA,
radius=1:3, units=c("z","x"),
main, xlab, ylab, xlim, ylim,
at.xax=NULL, at.yax=NULL, aspect,
col.contours="lightgrey",
lty.contours=par("lty"), lwd.contours=par("lwd"),
label.contours=T, format.clab="p=%4.3f",
cex=par("cex"), cex.label=0.7, pos=3, adj=NULL,
pos.clab="bottomright", col.clab=col.contours,
cex.axis=par("cex.axis"), pch=par("pch"), las=par("las"),
col=par("col"), bg=par("bg"), ...)
length(x)
associated with x.length(x)
.
labels
are coerced to character on use, so may be character, factor etc.."z"
, a classic Duewer plot
of s/s0
vs. (x-mu)/sigma
is produced. If units=="x"
, the plot is
drawn without scaling by sigma
or s0
.title()
.title()
.axis()
plot.window
. This defaults to 1.0 for
basis=="radius"
, giving semicircular countours, and NA otherwise.sprintf
.text
.basis="prob"
axis
.points
.x
are mean results of the form
(x-mu)/s
and and dispersions s
are the associated sd. The principle has also
been applied to multiple results for different measurands per laboratory, by calculating
z-scores for all observations relative to the assigned value and dispersion for each measurand
and then plotting mean and sd of the scores. More recently the plot has been used to summarise
reported values and (usually) standard uncertainties in metrology comparisons to allow
quick assessment of anomalies within data sets.
The traditional plot includes visual guides in the form of semicircular
contours at multiples of (x-mu)/sigma for the x-axis and s/s0 for the y-axis,
s0 being a median or other estimate of the typical standard deviation.
Contours are, by default, labelled with probabilities corresponding to quantiles
of the normal distribution.axis
for axis control, points
, text
for
plotting parameters; sprintf
for contour label format.
xs.plot
for a plot of location and scale data with probabilistic
confidence regions.require(metRology)
data(Pb)
Pb
duewer.plot(Pb$value, Pb$u)
duewer.plot(Pb$value, Pb$u, basis="prob", df=5)
#Illustrate contour labelling
duewer.plot(Pb$value, Pb$u, pos.clab="bottom")
Run the code above in your browser using DataLab