QC.slope {FishResp} | R Documentation |
Quality Control of Slope(s)
Description
Graphical quality control test of extracted slopes represents a visual comparison of linear regression of corrected O_{2}
concentration over time with current and alternative length of measurements.
Usage
QC.slope(slope.data, clean.data,
chamber = c("CH1", "CH2", "CH3", "CH4",
"CH5", "CH6", "CH7", "CH8"),
current = 999999, alter = 999999, residuals = FALSE)
Arguments
slope.data |
a data frame obtained by using the function |
clean.data |
a data frame obtained by using the function |
chamber |
string: the chamber chosen for the QC test |
current |
integer: current length of measurements for slope estimation (in seconds, black line) |
alter |
integer: alternative length of measurements for slope estimation (in seconds, red line) |
residuals |
logical: if TRUE then regression diagnostic graphs are plotted for each slope estimation (black graphs: for current slope estimation; red graphs: for alternative slope estimation). More information on diagnostic graphs can be found in the documentation of the function |
Examples
# if the data have been already loaded to R,
# skip the first four lines of the code:
data(SMR.clean)
data(SMR.slope)
data(AMR.clean)
data(AMR.slope)
QC.slope(SMR.slope, SMR.clean, chamber = "CH1",
current = 1200, alter = 600)
QC.slope(AMR.slope, AMR.clean, chamber = "CH4",
current = 600, alter = 300, residuals = TRUE)