showstates(d, model="DSAT")
"dive"
."DSAT"
, "USN"
,
"Workman"
or "ZH-L16A"
(partially matched)."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 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).
If model
is "DSAT"
or "USN"
, the model parameters
are extracted from the corresponding entries in the datasets
Halftimes
and Mvalues
. If model="Workman"
the model parameters are extracted from the
dataset Workman65
. If model="ZH-L16A"
the model parameters are extracted from the
dataset BuehlmannL16A
.
dive
,
haldane
,
oxtox
showstates(dive(c(30,20)), "ZH")
Run the code above in your browser using DataLab