
reconPlot(x, ...)## S3 method for class 'default':
reconPlot(x, depths, errors,
display.error = c("none", "bars", "lines"),
rev.x = TRUE,
col.error = "grey", lty.error = "dashed",
type = "l",
xlim, ylim,
xlab = "", ylab = "", main = "",
...)
## S3 method for class 'predict.mat':
reconPlot(x, depths, use.labels = FALSE,
predictions = c("model", "bootstrap"),
display.error = c("none", "bars", "lines"),
sample.specific = TRUE, ...)
use.labels = TRUE
, the function will attempt to
derive suitable values for you. See Details belo"none"
, "bars"
, or "lines"
. If
"bars"
, error bars are drawn for each sample. If
"lines"
, lines are drawn enclosing par
and arguments "col"
and "lty"
.par
and argument
"type"
."error.bars"
.reconPlot
attempt to derive
values for argument depths
from the names of the predicted
values? Only use if depths
is missing. See Details below."model"
or
"bootstrap"
. Which type of predicted values should be
plotted? The model predictions ("model"
) or the
bootstrap-derived predictions ("bootstrap"
).predictions = "bootstrap"
.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 not 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 example from ?join
example(join)
## Fit a MAT model
swap.mat <- mat(swapdiat, swappH, method = "SQchord")
swap.mat
## Reconstruct pH for the RLGH core
rlgh.pH <- predict(swap.mat, rlgh, bootstrap = TRUE,
n.boot = 100)
## draw the reconstruction
reconPlot(rlgh.pH, use.labels = TRUE, display.error = "bars",
xlab = "Depth", ylab = "pH")
Run the code above in your browser using DataLab