calculate.MR {FishResp} | R 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 |
density |
numeric: the density of an animal body ( |
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)
[Package FishResp version 1.1.1 Index]