lithlog_disc {WaverideR} | R Documentation |
Discriticizes lithologs
Description
Discriticizes lithologs to allow further time-series analysis first the Greatest common divisor/highest common factor is calculated which is then used to discriticize the litholog to an evenly sampled data series. The function is designed to place the boundary at the original depth level of the bed boundaries. The Greatest common divisor/highest common factor can be a very small number as such the discriticized data set can be large which impacts computational performance later on therefore a linear interpolation option is added to downscale the data to allow for computational efficiency later on. This is made to discriticize lithologs created using the 'StratigrapheR' package. as such the same data format for input is used. eg. column 1 is bottom of the bed, column 2 is top of bed, column is depth rank/proxy value
Usage
lithlog_disc(
litholog = NULL,
subset_fact = 10,
lin_interp = FALSE,
dt = NULL,
genplot = FALSE,
x_lab = "rank",
y_lab = "depth (m)",
keep_editable = FALSE
)
Arguments
litholog |
litholog input matrix with 3 columns column 1 is bottom of the bed, column 2 is top of bed, column is depth rank/proxy value |
subset_fact |
subset factor which is x times the greatest common divider |
lin_interp |
Linear interpolation of the data set |
dt |
step size |
genplot |
generate plot |
x_lab |
label for the y-axis |
y_lab |
label for the y-axis |
keep_editable |
Keep option to add extra features after plotting |
Value
Returns a matrix with 2 columns, the first column is depth the second columns is the depth/rank proxy
If genplot is Default=TRUE
then a plot of the discriticizes time series is plotted
References
Wouters, S., Da Silva, A.-C., Boulvain, F., and Devleeschouwer, X.. 2021. StratigrapheR: Concepts for Litholog Generation in R. The R Journal. <doi:10.32614/RJ-2021-039>
Examples
# Convert depth rank record to a discrete proxy record to allow for further
# analysis in which discrete time series are needed
depth_rank_example_disc <- lithlog_disc(litholog = depth_rank_example,
subset_fact = 10,
genplot = FALSE,
x_lab = "rank",
y_lab = "depth (m)",
keep_editable=FALSE)