pval_plot: Prepare significant p-values for plotting

View source: R/pval_plot.R

pval_plotR Documentation

Prepare significant p-values for plotting

Description

Internal function to convert an object of class 'im' to values readable by image.plot function within the rrs, lotrrs, and gating functions.

Usage

pval_plot(input, alpha)

Arguments

input

An object of class 'rrs' from the rrs or lotrrs function.

alpha

Numeric. The two-tailed alpha level for significance threshold (default in rrs, lotrrs, and gating functions is 0.05).

Value

An object of class 'SpatRaster' with categorical values:

  • A value of 1: Significant numerator.

  • A value of 2: Insignificant.

  • A value of 3: Significant denominator.


gateR documentation built on Feb. 16, 2023, 5:24 p.m.