| showstates | R Documentation |
Plots a dive profile and interactively displays the diver's nitrogen saturation state at any intermediate stage indicated by the mouse.
showstates(d, model="DSAT", relative=TRUE, deco=FALSE, ...)
d |
The dive. An object of class |
model |
The decompression model. Either an object of class |
relative |
Logical flag indicating whether to compute relative tissue
saturations. If |
deco |
Logical flag indicating whether to calculate relative saturations
for a decompression dive.
If |
... |
Arguments passed to |
An object of class "dive" represents a scuba dive.
It is created by the command dive.
This function plots the dive using plot.dive
then waits for the user to click on the plot. This click selects
a time during the dive. The algorithm computes the nitrogen tensions
in the tissues at the indicated time, using haldane,
and plots them as a bar graph. The cumulative oxygen toxicity is also
computed using oxtox.
Note that (by default) the bar graph shows the relative nitrogen tensions in each compartment, that is, the tissue nitrogen tension divided by the "surfacing M-value" (tissue maximum nitrogen tension for a no-decompression dive at sea level).
The argument model determines the decompression model.
It should be either an object of class "hm" (created by
hm) or a character string matching one of the
options in pickmodel.
The vector of absolute nitrogen tensions (in ata) in the most recently clicked stage.
.
dive,
haldane,
oxtox
## Not run:
showstates(dive(c(30,20), c(5,3)), "ZH")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.