The RColorBrewer package is an unavoidable tool to manage colors with R. However, the default palettes give only about 10 different colors. There is a tip for who needs more colors in his graph but still wants to use this useful package.
# Classic palette BuPu, with 4 colors
coul = brewer.pal(4, "BuPu")
# I can add more tones to this palette :
coul = colorRampPalette(coul)(25)
# Plot it
pie(rep(1, length(coul)), col = coul , main="")
Not what you are looking for ? Make a new search !