Description Usage Arguments Examples
Builds a ggplot2
graph.
1 2 3 4 5 6 7 8 9 10 11 12 |
x |
|
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 |
Optional vector of for which dive stage the trajectory was in at each observation |
errorbars |
If |
underlay |
additional |
imputed.alpha |
transparency value used for plotting imputed trajectories, if provided |
imputed.list |
A |
time.as.POSIXct |
if |
... |
(currently unused) additional plotting parameters |
1 2 3 4 5 6 7 8 9 10 11 12 13 | data('dive.sim')
attach(dive.sim)
# basic plot
pl = plot(x = sim.obs, depth.bins = depth.bins)
# plot with stages overlaid
pl2 = plot(x = sim.obs, depth.bins = depth.bins, stages = sim.obs$stages)
# plot with trajectory underlaid
pl3 = plot(x = sim.obs, depth.bins = depth.bins, imputed.list = sim)
detach(dive.sim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.