.scale_fill_pwf {ngsReports} | R Documentation

## Construct a scale using PwfCols

### Description

Construct a scale using PwfCols

### Usage

    .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

[Package ngsReports version 1.6.1 Index]