beyonce_palette(1, 3)
# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
pal <- beyonce_palette(21, number = 2, type = "continuous")
image(volcano, col = pal)
Run the code above in your browser using DataLab