.makePwfGradient | R Documentation |
Construct a gradient using PwfCols
.makePwfGradient(
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 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.
Returns a ggplot list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.