View source: R/gradient_from_data.R
| gradient_from_data | R Documentation |
Constructs a gradient or taphonomic conditions from a dataframe or list. If x is a dataframe, the first two columns are used, if x is a list the first two elements are used. The first entry is used as time/stratigraphic position, and the second as gradient/recovery probability.
gradient_from_data(x)
x |
list or data frame |
a function for usage as gradient or taphonomic conditions, which can be passed to apply_taphonomy or apply_niche
# water depth 2 km offshore as gradient
t = scenarioA$t_myr
l = list(t, scenarioA$wd_m[,"2km"])
f = gradient_from_data(l)
plot(t, f(t), type = "l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.