blue-pink-yellow color scheme, which also prints well on black/white printers
bpy.colors.RdCreate a vector of `n' “contiguous” colors.
Value
A character vector, `cv', of color names. This can be used either to create a user-defined color palette for subsequent graphics by `palette(cv)', a `col=' specification in graphics functions or in `par'.
Author
unknown; the pallette was posted to gnuplot-info a few decades ago; R implementation Edzer Pebesma, edzer.pebesma@uni-muenster.de
Examples
bpy.colors(10)
#> [1] "#000033FF" "#000099FF" "#0000FFFF" "#5000FFFF" "#9F0FF0FF" "#EF42BDFF"
#> [7] "#FF758AFF" "#FFA857FF" "#FFDB24FF" "#FFFF60FF"
p <- expand.grid(x=1:30,y=1:30)
p$z <- p$x + p$y
coordinates(p) <- c("x", "y")
gridded(p) <- TRUE
image(p, col = bpy.colors(100), asp = 1)
# require(lattice)
# trellis.par.set("regions", list(col=bpy.colors())) # make this default pallette