Learn R Programming

scuba (version 1.1-5)

plot.dive: Plot a Dive Profile

Description

Plot a dive profile.

Usage

plot.dive(x, ..., main, verticals=TRUE)

Arguments

x
The dive profile. An object of class "dive" created by dive.
...
Arguments passed to plot.default.
main
Overall label for plot.
verticals
Flag indicating whether the plot should indicate what gas is breathed during ascent and descent between stages, as well as during the main stages of the dive.

Value

  • NULL.

Details

A representation of the dive profile is plotted.

See Also

dive

Examples

Run this code
# Dive to 25 m for 20 min with safety stop
  d1 <- dive(c(25,20),c(5,5))
  # plot it
  plot.dive(d1)
  # Dive to 18 m for 30 min with safety stop, on Nitrox EANx 36
  d3 <- dive(nitrox(0.36), c(18,30), c(5,3))
  plot.dive(d3)

Run the code above in your browser using DataLab