Plot grey-scale representation of estimated flux rates for proxies against calendar age.
flux.age.ghost(proxy = 1, yr.lim = c(), yr.res = 200, set = get("info"),
flux = c(), plot.range = TRUE, prob = 0.8, range.col = grey(0.5),
range.lty = 2, plot.mean = TRUE, mean.col = "red", mean.lty = 2,
flux.lim = c(), flux.lab = "flux", upper = 0.95, dark = set$dark,
BCAD = set$BCAD, yr.lab = c(), rotate.axes = FALSE, rev.flux = FALSE,
rev.yr = FALSE)
Which proxy to use (counting from the column number in the .csv file after the depths column).
Minimum and maximum calendar age ranges, calculated automatically by default (yr.lim=c()
).
Resolution or amount of greyscale pixels to cover the age scale of the plot. Default yr.res=200
.
Detailed information of the current run, stored within this session's memory as variable info.
Define a flux variable within the R session (consisting of depths and their proxy concentrations in two columns) and provide the name of this variable, e.g.:
flux.age.ghost(flux=flux1)
. If left empty (flux=c()
), a flux file is expected (see proxy
).
Plot curves that indicate a probability range, at resolution of yr.res.
Probability range, defaults to prob=0.8
(10 % at each side).
Red seems nice.
Line type of the confidence ranges.
Plot the mean fluxes.
Red seems nice.
Line type of the means.
Limits of the flux axes.
Axis labels. Defaults to flux.lab="flux"
.
Maximum flux rates to plot. Defaults to the upper 99%; upper=0.99
.
The darkest grey value is dark=1
by default; lower values will result in lighter grey but values >1
are not allowed.
The calendar scale of graphs and age output-files is in cal BP
by default, but can be changed to BC/AD using BCAD=TRUE
.
The labels for the calendar axis (default yr.lab="cal BP"
or "BC/AD"
if BCAD=TRUE
).
The default of plotting calendar year on the horizontal axis and fluxes on the vertical one can be changed with rotate.axes=TRUE
.
The flux axis can be reversed with rev.flux=TRUE
.
The direction of the age axis can be reversed using rev.yr=TRUE
.
A plot of flux rates.
To plot flux rates (e.g. pollen grains/cm2/yr) as greyscales,
provide a plain text file with headers and the data in columns separated by commas, ending in '_flux.csv'
and saved in your core's folder. The first column should contain the depths, and the next columns should contain
the proxy concentration values (leaving missing values empty). Then type for example flux.age.ghost(1)
to plot the
flux values for the first proxy in the .csv file. Instead of using a _flux.csv file, a flux variable can also be defined
within the R session (consisting of depths and their proxy concentrations in two columns). Then provide the name of this variable, e.g.: flux.age.ghost(flux=flux1)
.
See Bacon_runs/MSB2K/MSB2K_flux.csv for an example.
Blaauw, M. and Christen, J.A., Flexible paleoclimate age-depth models using an autoregressive gamma process. Bayesian Anal. 6 (2011), no. 3, 457--474. https://projecteuclid.org/download/pdf_1/euclid.ba/1339616472
# NOT RUN {
Bacon(run=FALSE, coredir=tempfile())
agedepth(yr.res=50)
flux.age.ghost(1)
# }
Run the code above in your browser using DataLab