Convert a proxy record to the time domain using anchor points
Source:R/anchor2time.R
anchor2time.RdConvert a proxy record to the time domain using anchor points made using the astro_anchor function.
Arguments
- anchor_points
Anchor points: the output of
astro_anchor, or a matrix or data frame with depth in column 1 and time in column 2 (at least two rows, sorted by increasing depth). Time is linearly interpolated between the anchor points; above the first and below the last anchor point it is extrapolated with the sedimentation rate of the first/last anchored interval. Required (Default=NULLgives an error).- data
Proxy record to convert from the depth to the time domain: a two-column matrix or data frame with depth in column 1 (same unit as column 1 of
anchor_points, sorted by increasing depth) and the proxy value in column 2. Required (Default=NULLgives an error).- genplot
Plot the result (logical, TRUE or FALSE). If
TRUE, 3 plots are stacked on top of each other: 1) the original record in the depth domain, 2) the depth-time plot of the (extended) anchor points, 3) the record in the time domain.Default=FALSE.- keep_editable
Keep the plot layout and graphical parameters after plotting so that extra features can be added to the plot (logical, TRUE or FALSE); if
FALSEthe previouspar()settings are restored. Only used whengenplot=TRUE.Default=FALSE.