plot_colors(colorpalette[[5]], labels = c("one", "two", "three", "four", "five"))
plot_colors(colorpalette[[10]])
plot_colors(1:7)
plot_colors(c("yellow", "orange", "red", "purple", "blue", "green"))
plot_colors(rainbow(15))
Run the code above in your browser using DataLab