This post describes how to get a long color palette with R and the RColorBrewer package.
The RColorBrewer
package is a great tool when it comes
to build a color palette with R. However, the default palettes give
only about 10 different colors. Here is a tip to get more colors in
a graph, still using this useful package. Basically, it relies on
the colorRampPalette()
function to extand a first
palette.
Note: visit this post for a complete list of the available palettes.
👋 After crafting hundreds of R charts over 12 years, I've distilled my top 10 tips and tricks. Receive them via email! One insight per day for the next 10 days! 🔥