Learn R Programming

respirometry (version 1.2.1)

calc_alpha: Calculate the oxygen supply capacity (alpha)

Description

The oxygen supply capacity (\(\alpha\)) is a species- and temperature-specific value quantifying an animal's ability to extract oxygen from the ambient medium to support its metabolism (e.g. umol O2 / g / hr / kPa).

Usage

calc_alpha(po2, mo2, MR = NULL, mo2_threshold = Inf)

Arguments

po2

a vector of PO2 values.

mo2

a vector of metabolic rate values. Must be the same length and corresponding to po2.

MR

a vector of values for the metabolic rate at which pcrit_alpha should be returned. Default is NULL. If not specified, then pcrit_alpha is not returned and a message is added to the top of the return.

mo2_threshold

a single numeric value above which mo2 values are ignored. Useful to removing obviously erroneous values. Default is Inf.

Value

Returns a list of 1) alpha, 2) the PO2 and MO2 coordinates of the observation where alpha was reached, and 3) the Pcrit at a metabolic rate of MR.

References

Seibel et al. 2020 (in prep).

See Also

calc_pcrit, plot_pcrit

Examples

Run this code
# NOT RUN {
mo2_data <- read.csv(system.file('extdata', 'mo2_v_po2.csv', package = 'respirometry'))
calc_alpha(po2 = mo2_data$po2, mo2 = mo2_data$mo2, MR = 1.5) # MR set to 1.5 to capture the 
# Pcrit corresponding to some of the lowest MO2 values recorded (something close to SMR).

# }

Run the code above in your browser using DataLab