plot_relaxation {isobxr} | R Documentation |
plot relaxation
Description
A function to plot the relaxation of isotope ratios in a system, including characteristic times
Usage
plot_relaxation(
workdir,
flux_list,
coeff_list,
spiked_boxes,
spike.max_delta = 100,
n_steps = 10000,
hidden_boxes = NULL,
show.residence_time = TRUE,
show.facets = FALSE,
time_landmarks = NULL,
time_as_log10 = TRUE,
isobxr_master_file = "0_ISOBXR_MASTER",
time.resolution_cut = NULL
)
Arguments
workdir |
Working directory of isobxr excel master file and where output files will be stored if exported by user. (character string) |
flux_list |
Name of the list of fluxes and initial box sizes to be used for the run, |
coeff_list |
Name of the list of fractionation coefficients to be used for the run, |
spiked_boxes |
Vector of box names ("BOX_ID") to be spiked. |
spike.max_delta |
Value of the maximum spike isotope composition |
n_steps |
Number of calculation steps. Determines the resolution of the run. |
Vector of boxes to hide from plots. | |
show.residence_time |
If TRUE, displays box-specific residence times on plot. |
show.facets |
If TRUE, displays results in box-specific facets. |
time_landmarks |
Vector of time landmarks to display on x-axis (numerical values). |
time_as_log10 |
If TRUE, uses logarithmic time scale in plot. |
isobxr_master_file |
Name of isobxr excel master file. |
time.resolution_cut |
Time below which resolution is increased. Default is NULL. |
Value
A plots showing the evolution of the isotopic ratios in the system until full relaxation,
defined as the maximum relaxation time multiplied by 10.
Examples
## Not run:
plot_relaxation(workdir = "/Users/username/Documents/1_ABC_tutorial",
flux_list = "Fx6_ABC_open_bal",
coeff_list = "a0",
n_steps = 1000,
spiked_boxes = c("SOURCE"))
## End(Not run)