dscale

0th

Percentile

Discrete scale.

Discrete scale.

Usage
dscale(x, palette, na.value = NA)
Arguments
x
vector of discrete values to scale
palette
aesthetic palette to use
na.value
aesthetic to use for missing values
Aliases
  • dscale
Examples
library(scales) with(mtcars, plot(disp, mpg, pch = 20, cex = 3, col = dscale(factor(cyl), brewer_pal())))
Documentation reproduced from package scales, version 0.4.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.