kplot(x, ...)
## S3 method for class 'default':
kplot(x,U=NULL, labels=names(x), assigned=NULL, U.assigned=NULL,
U.lo=U, U.hi=U, k=2, strata=NULL,
do.percent=!is.null(assigned) && !do.pdf,
ordered=TRUE, order.strata=levels(strata),
xlim=c(0.5, length(x)+0.5), ylim,
main=NULL, xlab=NULL, ylab=NULL,
axis.main=2, axis.pct=4, at=1:length(x), at.main=NULL,
cex.axis=0.8, las=2, las.pct=1, ylab.line=2.5,
ylab.line.pct=2.1, ci.width=0.03, col.ci=par("fg"),
lty.ci=par("lty"), lwd.ci=par("lwd"), pch=21,
col=par("fg"), bg="white", add.outliers=FALSE,
outlier.offset=0.2, mar=NULL, box=TRUE,
do.pdf=FALSE, do.individual.pdf=do.pdf,
col.pdf=par("fg"), lwd.pdf=1, lty.pdf=1,
do.total.pdf=TRUE, col.total.pdf=col.pdf[1],
lwd.total.pdf=2, lty.total.pdf=1, n.pdf=200,
pdf.layout=c(4,1), pdf.scale=0.7, pdf.offset=0.05,
xlim.pdf, pdf.axis=FALSE, las.pdf=0,
mgp.pdf=c(3,0.5,0), ...)
## S3 method for class 'ilab':
kplot(x, \dots)
kpoints(x,U=NULL, labels=names(x), U.lo=U, U.hi=U, k=2,
strata=NULL, ordered=TRUE, order.strata=levels(strata),
at=1:length(x), ci.width=0.03, col.ci=par("fg"),
lty.ci=par("lty"), lwd.ci=par("lwd"), pch=21,
col=par("fg"), bg="white", add.outliers=FALSE,
outlier.offset=0.2, ...)length(x) of expanded uncertaintieslength(x) labels for x-axis marks.length(x) of lower and upper
limits for the uncertainty intervals around the reported
values, to allow asymmetric intervals. Both default to U.do.pdf=TRUE, as k is used to calculate standard uncertainties
from U. k can be a scalar (recycled to length length(x)
if nTRUE if an assigned
value is provided and FALSE if there is no assigned value
or if a margiTRUE, values are plotted in ascending order.plot.default.?title for details.axis as side. The axis is placed as for follows:
1=below, 2=left, 3=above and 4=right. The main axis (axis.mai1:length(x).axis via at.axis.par(las).axis.arrows.arrows.points.
bg specifies the fill colour for pch from 21 to 25.TRUE, points outside ylim are indicated as
an arrow indicating the direction in which the omitted points lie, with
a text label showing the reported value.par(mar). The default varies depending on
do.pct and do.pdf.TRUE, a box is drawn round the plot region.TRUE, a marginal density and/or individual densities for the
individual reported values are plotted based on the reported
values x and standard uncertainties calculated as U/k.?layout for details.TRUE and no other axis has been plotted to the right of the main plot,
an axis is plotted with the marginal density.axis to plot the axis for the
marginal density.order.do.pdf=TRUE a marginal density plot is added. This plot is constructed
from a set of (currently) normal densities centred at x with standard
deviation U/k.
If a marginal density is plotted, par("layout") is changed to
pdf.layout; otherwise, par("layout") is set to matrix(1).
Both override any previously set layout. par("layout") is preserved on exit.
The x, upper and lower bounds U.lo and U.hi,
labels and title taken from the ilab object.
kpoints is a convenience function for adding points with confidence
intervals to an existing plot. kpoints is not a generic function
and requires a vector x. Note that kpoints does not check for
the presence of a marginal density plot.arrows.data(Pb)
kplot(Pb$value, Pb$U, assigned=2.99, U.assigned=0.06)
kplot(Pb$value, Pb$U, assigned=2.99, U.assigned=0.06, do.pdf=TRUE)
#Use of return value for annotation
kp<-kplot(Pb$value, Pb$U, assigned=2.99, U.assigned=0.06)
text(kp$at, Pb$value-Pb$U, Pb$lab, srt=90, pos=4, cex=0.7)Run the code above in your browser using DataLab