dot-makePwfGradient: Construct a gradient using PwfCols

.makePwfGradientR Documentation

Construct a gradient using PwfCols

Description

Construct a gradient using PwfCols

Usage

.makePwfGradient(
  vals,
  pwfCols,
  breaks = c(0, 5, 10, 100),
  passLow = TRUE,
  na.value = "white"
)

Arguments

vals

The values which need to have the scale generated

pwfCols

An object of class PwfCols

breaks

The breaks for the PWF bins

passLow

Is the PASS category at the low or high end of the numeric range

na.value

The colour to plot for missing values

Details

This constructs a list of arguments for passing to scale_fill_gradientn() using the values contained in the fill aesthetic and the supplied breaks for PASS/WARN/FAIL criteria.

Value

Returns a ggplot list


steveped/ngsReports documentation built on July 24, 2024, 10:45 a.m.