powered by
msd
Print and plotting methods for the MSD object class returned by msd.
MSD
# S3 method for MSD print(x, ...) # S3 method for MSD plot(x, type="h", ylab="MSD", ylim=NULL, ...) # S3 method for 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, ... )
# S3 method for MSD plot(x, type="h", ylab="MSD", ylim=NULL, ...)
# S3 method for 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, ... )
The print method returns the object, invisibly.
print
The plot method returns NULL, invisibly.
plot
The barplot methods return the values at the midpoint of each bar.
barplot
Object of class "MSD".
"MSD"
The plot type. See plot.default.
plot.default
Label for vertical axis, passed to barplot
Labels for individual bars in bar plot, passed to barplot. If names(height) is NULL, bars are numbered.
names(height)
NULL
If TRUE, horizontal lines at critical values are added to the plot. These are calculated by link{qmsd} based on supplied values of probs and n.
TRUE
link{qmsd}
probs
n
Vectors of line style parameters for plotted critical values, passed to abline.
abline
vector of probabilities at which critical values are drawn.
integer number of observations for critical value calculation; passed to qmsd.
qmsd
Limits for y-axis. the default makes sure the axis begins at zero and includes all values
Parameters passed to other methods.
S. L. R. Ellison s.ellison@lgcgroup.com
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\).
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)
Run the code above in your browser using DataLab