Skip to contents

This 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.

Usage

checkRes_covScatter(Res, detector1, detector2)

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).

Value

A ggplot object showing the scatter plot of covariance values and a regression line.

Examples

if (FALSE) { # \dontrun{
checkRes_covScatter(Res = ResObj,
detector1 = ResObj$detectors[1],
detector2 = ResObj$detectors[2])
} # }