dot-scale_fill_pwf: Construct a scale using PwfCols

Description Usage Arguments Details Value

Description

Construct a scale using PwfCols

Usage

1
2
3
4
5
6
7
.scale_fill_pwf(
  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 ggplot scale using the values contained in the fill aesthetic and the supplied breaks for PASS/WARN/FAIL criteria. As this doesn't follow the conventional ggplot syntax, using more of functional approach, it will be a hidden function.

Value

Returns a ggplot scale object


ngsReports documentation built on Nov. 23, 2020, 2:01 a.m.