Plot an agreement-map test result
Source:R/agreement_map_test.R
plot.rcisignal_rel_agreement_map_test.RdRenders the observed per-pixel t-map from agreement_map_test()
with the same color conventions as plot_agreement_map(), and
overlays the FWE-significant pixel boundary as black contours
when show_contour = TRUE (the default). Optionally composites
the map on a grayscale base face.
This is the one-call form of the canonical pairing
plot_agreement_map(signal, ...) + agreement_map_test(...):
the test object carries everything the renderer needs
(observed_t, significant_mask, img_dims), so users do not
have to re-thread the source signal_matrix.
Arguments
- x
A
agreement_map_test()result.- palette
"diverging"(default; signed t, blue = positive, red = negative) or"fire"(|t|on a single-hue ramp). Seeplot_agreement_map()for the full Reading-the-plot discussion; the same conventions apply here.- threshold
Optional positive numeric. Pixels with
|t| < thresholdrender as the neutral color (descriptive only; FWE control is already insignificant_mask).- zlim
Numeric
c(low, high)for the color scale. Defaults to a symmetricc(-max|t|, max|t|)for diverging orc(0, max|t|)for fire.- base_image
Optional. Numeric matrix or path to PNG/JPEG. When supplied, the t-map is composited on top of the grayscale base; out-of-mask and subthreshold pixels render fully transparent.
- alpha_max
Numeric in
[0, 1]. Maximum opacity at the color-scale top whenbase_imageis supplied. Default 0.7.- show_contour
Logical. Draw the FWE-significant pixel boundary as black contours on top of the t-map. Default
TRUE.- contour_col, contour_lwd
Significance-contour color and line width.
- main
Plot title.
- ...
Reserved for future use.