reconPlot(x, ...)## S3 method for class 'default':
reconPlot(x, ...)
## S3 method for class 'predict.mat':
reconPlot(x, depths, use.labels = FALSE,
predictions = c("apparent", "bootstrap"),
error.bars = FALSE, sample.specific = TRUE,
rev.x = TRUE, type = "l", xlim, ylim,
xlab = "", ylab = "", main = "", ...)
"predict.mat" and "mat" are supported.use.labels = TRUE, the function will attempt to
derive suitable values for you. See Details beloreconPlot attempt to derive
values for argument depths from the names of the predicted
values? Only use if depths is missing. See Details below."apparent" or
"bootstrap". Which type of predicted values should be
plotted? The actual predictions ("apparent") or the
bootstrap-derived predictions ("bootstrap").predictions = "bootstrap".par and argument
"type"."error.bars".depths is used to provide the depth or age
axis, against which the predicted values are plotted. If depths is not provided, then the function will try to
derive the appropriate values from the labels of the predictions if
use.labels = TRUE. You must provide depths or set
use.labels = TRUE otherwise an error will result. The derived
labels will be coerced to numerics. If your labels are coercible, then
you'll either get nonsense on the plot or an error from R. If so,
provide suitable values for depths.
mat, and predict.mat## continue the RLGH example from ?mat
example(mat)
## draw the reconstruction
reconPlot(rlgh.mat, use.labels = TRUE, error.bars = TRUE,
xlab = "Depth", ylab = "pH")Run the code above in your browser using DataLab