pal_dichromat {scales} | R Documentation |
Dichromat (colour-blind) palette (discrete)
Description
Dichromat (colour-blind) palette (discrete)
Usage
pal_dichromat(name)
dichromat_pal(name)
Arguments
name |
Name of colour palette. One of:
|
Examples
if (requireNamespace("dichromat", quietly = TRUE)) {
show_col(pal_dichromat("BluetoOrange.10")(10))
show_col(pal_dichromat("BluetoOrange.10")(5))
# Can use with gradient_n to create a continous gradient
cols <- pal_dichromat("DarkRedtoBlue.12")(12)
show_col(pal_gradient_n(cols)(seq(0, 1, length.out = 30)))
}
[Package scales version 1.3.0 Index]