Description Usage Arguments Details Value
Construct a scale using PwfCols
1 2 3 4 5 6 7 | .scale_fill_pwf(
vals,
pwfCols,
breaks = c(0, 5, 10, 100),
passLow = TRUE,
na.value = "white"
)
|
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 |
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.
Returns a ggplot scale object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.