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