Plot Covariance Scatter Between Two Detectors with Regression Line
Source:R/checkRes_covScatter.R
checkRes_covScatter.RdThis function generates a scatter plot of covariance values between two specified detectors
across bin midpoints, using data from a result object Res. A regression line is added
using the corresponding slope and intercept values, which are also displayed in the plot title.
Arguments
- Res
A list containing the following components:
bin_mids: A numeric vector of bin midpoints.detectors: A character vector of detector names.cov_matrices: A 3D array of covariance values indexed by detector pairs and bins.slopMtx: A matrix of slope values for each detector pair.interceptMtx: A matrix of intercept values for each detector pair.
- detector1
Name of the one detector (character string).
- detector2
Name of the another detector (character string).