Description Usage Arguments Details Value Examples
This function returns a palette suitable for a heatmap of AUC (area under the ROC or Receiver Operating Characteristic). The palette is appropriate for any scale with equal positive and negative ranges above and below a central value. For AUC, the central value is 0.5, and the min and max are 0. and 1. More positive values map to bluer colors, more negative values map to yellower colors.
1 |
n |
Number of levels in palette (number of bins). Default: |
invert |
If |
reverse |
If |
Palette characteristics:
color-blind-safe (under three most common forms of colorblindness)
perceptually linear
equal brightness gradients on both sides of central value
constant hue and chroma on either side of central value
Dark value for no correlation (near 0.5); bright values for high correlation (near 1 and 0)
Blue for positive correlation (1); orange for negative correlation (0)
NOT suitable for b/w printing, as low and high values are not distinguishable in greyscale
character vector. A vector of RGB colors specified as hex color codes (#RRGGBB).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | p <- AUColors()
p
colorbar(p)
# Sample AUC Heat Map
randommatrix <- matrix(runif(12*6),ncol=6)
nlevels <- 10
lattice::levelplot(randommatrix,
at = seq(0,1,1/nlevels), # number of breaks
col.regions = AUColors(), # color map
aspect = "iso")
## inverted and reversed, with grey center bin:
p <- AUColors(n=21,invert=TRUE,reverse=TRUE)
colorbar(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.