MSD-class | 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", ylim=NULL, ...)
## 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), ylim=NULL, ... )
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
|
ylim |
Limits for y-axis. the default makes sure the axis begins at zero and includes all values |
... |
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@lgcgroup.com
msd
, qmsd
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.