calculate.MR: Calculation of Metabolic Rate

Description Usage Arguments Value Examples

View source: R/calculate.MR.R

Description

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

Usage

1
2
3
4
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# 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 Oct. 22, 2018, 9:03 a.m.