Description Usage Arguments Examples
Converts raw dive information to a tidy dataframe that
is suitable for plotting with ggplot2
. Most importantly, the function
converts depth bin indices to actual depths and depth ranges.
1 2 3 4 5 6 7 8 9 |
depths |
Record of observed depth bin indices |
times |
Times (in seconds) at which depth bin observations were made |
depth.bins |
n x 2 Matrix that defines the depth bins. The first column defines the depth at the center of each depth bin, and the second column defines the half-width of each bin. |
stages |
Vector of (guesses) for which dive stage the trajectory was in at each observation |
durations |
Vector specifying the amount of time spent in each depth bin |
time.as.POSIXct |
if |
t0.dive |
Initial time for dive, so that times from beginning of dive can be computed as well |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.