Examples for 'scales::dichromat_pal'


Dichromat (colour-blind) palette (discrete)

Aliases: dichromat_pal

Keywords:

### ** Examples

if (requireNamespace("dichromat", quietly = TRUE)) {
  show_col(dichromat_pal("BluetoOrange.10")(10))
  show_col(dichromat_pal("BluetoOrange.10")(5))

  # Can use with gradient_n to create a continous gradient
  cols <- dichromat_pal("DarkRedtoBlue.12")(12)
  show_col(gradient_n_pal(cols)(seq(0, 1, length.out = 30)))
}
plot of chunk example-scales-dichromat_pal-1
plot of chunk example-scales-dichromat_pal-1
plot of chunk example-scales-dichromat_pal-1

[Package scales version 1.2.0 Index]