MSD-class {metRology} | R Documentation |
msd
.Print and plotting methods for the MSD
object class returned by msd
.
## S3 method for class 'MSD' print(x, ...) ## S3 method for class 'MSD' plot(x, type="h", ylab="MSD", ...) ## S3 method for class 'MSD' barplot(height, ylab="MSD", names.arg=names(height), crit.vals=TRUE, lty.crit=c(2,1), col.crit=2, lwd.crit=c(1,2), probs=c(0.95, 0.99), n=length(height), ... )
x, height |
Object of class |
type |
The plot type. See |
ylab |
Label for vertical axis, passed to |
names.arg |
Labels for individual bars in bar plot, passed to |
crit.vals |
If |
lty.crit, col.crit, lwd.crit |
Vectors of line style parameters for plotted critical values, passed to
|
probs |
vector of probabilities at which critical values are drawn. |
n |
integer number of observations for critical value calculation; passed to
|
... |
Parameters passed to other methods. |
See msd
for the object description.
For the barplot method, critical values are ‘single-observation’ quantiles.
For use as an outlier test, use probabilities adjusted for multiple comparison;
for example, for the barplot method, consider raising the default probs
to the power 1/n.
The print
method returns the object, invisibly.
The plot
method returns NULL, invisibly.
The barplot
methods return the values at the midpoint of each bar.
S. L. R. Ellison s.ellison@lgc.co.uk
data(Pb) msd.Pb<-msd(Pb$value, Pb$u) # Uses individual standard uncertainties names(msd.Pb) <- as.character(Pb$lab) plot(msd.Pb) barplot(msd.Pb)