Description Usage Arguments Value See Also Examples

View source: R/sim.trait.values.R

Function returns a vector using the sine wave function *y = depth*sin(cycles*pi*(x-1/4))*
for a given set of intervals.
This vector can be used as a gradient to simulate fossils under an environment-dependent model of fossil recovery using the
function `sim.fossils.environment`

.

1 | ```
sim.gradient(strata, depth = 2, cycles = 2)
``` |

`strata` |
Number of stratigraphic intervals. |

`depth` |
Maximum water depth. |

`cycles` |
Number of cycles (e.g. transgressions and regressions). |

vector of sampled water depths.

1 2 3 | ```
strata = 100
wd = sim.gradient(strata)
plot(wd, type="l")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.