QC.slope: Quality Control of Slope(s)

Description Usage Arguments Examples

View source: R/QC.slope.R

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

1
2
3
4
QC.slope(slope.data, clean.data,
         chamber = c("CH1", "CH2", "CH3", "CH4",
                     "CH5", "CH6", "CH7", "CH8"),
         current = 9999, alter = 9999, residuals = FALSE)

Arguments

slope.data

a data frame obtained by using the function extract.slope

clean.data

a data frame obtained by using the function correct.meas

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 plot.lm.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# 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)

FishResp documentation built on Oct. 22, 2018, 9:03 a.m.