calculate.MR: Calculation of Metabolic Rate

View source: R/calculate.MR.R

calculate.MRR Documentation

Calculation of Metabolic Rate

Description

The function is used to calculate and plot background respiration, absolute and mass-specific metabolic rates.

Usage

calculate.MR(slope.data, density = 1000,
             plot.BR = TRUE,
             plot.MR.abs = TRUE,
             plot.MR.mass = TRUE)

Arguments

slope.data

a data frame obtained by using the function extract.slope

density

numeric: the density of an animal body (kg/m^{3})

plot.BR

logical: if TRUE, the graph of background respiration rate is plotted

plot.MR.abs

logical: if TRUE, the graph of absolute metabolic rate is plotted

plot.MR.mass

logical: if TRUE, the graph of mass-specific metabolic rate is plotted

Value

The function returns a data frame with calculated background respiration, absolute and mass-specific metabolic rates. The data frame is used in the function export.MR.

Examples

# if the data have been already loaded to R,
# skip the first two lines of the code:
data(SMR.slope)
data(AMR.slope)

SMR <- calculate.MR(SMR.slope,
                    density = 1000,
                    plot.BR = TRUE,
                    plot.MR.abs = TRUE,
                    plot.MR.mass = TRUE)

AMR <- calculate.MR(AMR.slope,
                    density = 1000,
                    plot.BR = TRUE,
                    plot.MR.abs = TRUE,
                    plot.MR.mass = TRUE)


FishResp documentation built on Sept. 18, 2022, 5:06 p.m.