plot.dive {scuba} | R Documentation |
Plot a dive profile.
## S3 method for class 'dive': plot(x, ..., main, show.gases=TRUE, verticals=TRUE)
x |
The dive profile. An object of class "dive"
created by dive .
|
... |
Arguments passed to plot.default .
|
main |
Overall label for plot. |
show.gases |
Flag indicating whether the plot should be annotated with labels indicating what gas is breathed. |
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. |
A representation of the dive profile is plotted.
NULL.
Adrian Baddeley adrian@maths.uwa.edu.au http://www.maths.uwa.edu.au/~adrian/
# 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) # Real dive profile data(baron) d4 <- dive(nitrox(0.30), baron[, 1:2]) plot(d4, main="Baron Gautsch dive")