๐ŸŒ
R Graph Gallery
r-graph-gallery.com โ€บ 38-rcolorbrewers-palettes.html
R Color Brewerโ€™s palettes
Qualitative palettes do not imply magnitude differences between legend classes, and hues are used to create the primary visual differences between classes. Qualitative schemes are best suited to representing nominal or categorical data. library(RColorBrewer) par(mar=c(3,4,2,2)) display.brewer.all()
๐ŸŒ
Datanovia
datanovia.com โ€บ blog โ€บ r color palettes: the complete reference
R Color Palettes: The Complete Reference โ€“ Datanovia
July 12, 2026 - A good color palette is perceptually uniform (equal steps in data look like equal steps in color), colorblind-safe, and prints in greyscale. Two libraries cover almost every need: viridis โ€” the default you canโ€™t go wrong with: uniform, ...
People also ask

What is the best color palette to use in R?
For almost any chart, reach for viridis โ€” it is perceptually uniform, colorblind-safe, and still readable in greyscale, so you rarely go wrong with it. When you need curated sequential, diverging, or qualitative sets (thematic maps, grouped bars), use RColorBrewer. Go beyond those two only for a specific look โ€” scientific-journal (ggsci), Wes Anderson, or the base-R classics. Avoid plain rainbow() for data: it is not perceptually uniform and breaks under colorblindness.
๐ŸŒ
datanovia.com
datanovia.com โ€บ blog โ€บ r color palettes: the complete reference
R Color Palettes: The Complete Reference โ€“ Datanovia
Which R color palettes are colorblind-safe?
viridis and its variants (magma, plasma, inferno, cividis) are colorblind-safe by design. In RColorBrewer, restrict yourself to the palettes flagged safe by display.brewer.all(colorblindFriendly = TRUE). Whatever you pick, sanity-check it the way the colorblind-safe section shows โ€” simulate deuteranopia and view the plot in greyscale โ€” and never rely on color as the only signal.
๐ŸŒ
datanovia.com
datanovia.com โ€บ blog โ€บ r color palettes: the complete reference
R Color Palettes: The Complete Reference โ€“ Datanovia
How do I apply one of these palettes to a ggplot2 chart?
Map the palette to the relevant scale. For a discrete grouping use scale_color_viridis_d() / scale_fill_viridis_d(), scale_color_brewer(palette = "Set2"), or a manual vector with scale_color_manual(values = my_colors); for a numeric variable use the _c twins (scale_fill_viridis_c()). The dedicated ggplot2 Colors lesson covers color vs fill, coloring by group, and continuous gradients in full.
๐ŸŒ
datanovia.com
datanovia.com โ€บ blog โ€บ r color palettes: the complete reference
R Color Palettes: The Complete Reference โ€“ Datanovia
๐ŸŒ
Rdrr.io
rdrr.io โ€บ cran โ€บ RColorBrewer โ€บ man โ€บ ColorBrewer.html
ColorBrewer: ColorBrewer palettes in RColorBrewer: ColorBrewer Palettes
April 4, 2022 - The critical class or break in the middle of the legend is emphasized with light colors and low and high extremes are emphasized with dark colors that have contrasting hues. 3. Qualitative palettes do not imply magnitude differences between legend classes, and hues are used to create the primary visual differences between classes. Qualitative schemes are best suited to representing nominal or categorical data.
๐ŸŒ
Jose M Sallan blog
jmsallan.netlify.app โ€บ blog โ€บ the-brewer-palettes
The Brewer palettes - Jose M Sallan blog - Netlify
Top R color palettes to know for great data visualization https://www.datanovia.com/en/blog/top-r-color-palettes-to-know-for-great-data-visualization/ Sequential, diverging and qualitative colour scales from ColorBrewer https://ggplot2.tidyverse.org/reference/scale_brewer.html ยท Built with R 4.1.0, tidyverse 1.3.1 and RColorBrewer 1.1-2
๐ŸŒ
Emilhvitfeldt
emilhvitfeldt.github.io โ€บ r-color-palettes โ€บ discrete โ€บ RColorBrewer โ€บ Set1 โ€บ index.html
RColorBrewer - Set1
RColorBrewer ยท Use with paletteer package: library(paletteer) paletteer_d("RColorBrewer::Set1") Use raw: c("#E41A1CFF", "#377EB8FF", "#4DAF4AFF", "#984EA3FF", "#FF7F00FF", "#FFFF33FF", "#A65628FF", "#F781BFFF", "#999999FF")
๐ŸŒ
Datavizpyr
datavizpyr.com โ€บ home โ€บ introduction to color palettes in r with rcolorbrewer
Introduction to Color Palettes in R with RColorBrewer - Data Viz with Python and R
September 6, 2025 - Choosing the right palette ensures ... distinguish categories. Below are examples of each type in action with ggplot2. Sequential palettes are best ......
Find elsewhere
๐ŸŒ
R Graph Gallery
r-graph-gallery.com โ€บ package โ€บ rColorBrewer.html
Access mutliple color palettes with RColorBrewer
Qualitative palettes do not imply magnitude differences between legend classes, and hues are used to create the primary visual differences between classes. Qualitative schemes are best suited to representing nominal or categorical data. library(RColorBrewer) colors = brewer.pal(n = 8, name = "PuOr") # basic plot library(ggplot2) ggplot(mtcars, aes(x = wt, y = mpg, color = factor(cyl))) + geom_point(size = 3) + scale_color_manual(values = colors) + theme_minimal()
๐ŸŒ
R Graph Gallery
r-graph-gallery.com โ€บ 40-rcolorbrewer-get-a-longer-palette.html
Get a long color palette with RColorBrewer โ€“ the R Graph Gallery
Note: visit this post for a complete list of the available palettes. # No margin par(mar=c(0,0,1,0)) # Load RColorBrewer library(RColorBrewer) # Classic palette BuPu, with 4 colors coul <- brewer.pal(4, "PuOr") # Add more colors to this palette : coul <- colorRampPalette(coul)(25) # Plot it pie(rep(1, length(coul)), col = coul , main="")
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ introduction-to-color-palettes-in-r-with-rcolorbrewer
Introduction to Color Palettes in R with RColorBrewer - GeeksforGeeks
October 17, 2021 - To install the RColorBrewer package in R Language we can use a cran mirror using: ... After running this, select the desired cran mirror from the list of available mirrors and the package will be installed. ... The Sequential color palettes have colors ordered in intensity and saturation. So, they are best for the visualization of data that is ordered and progresses from high to low.
๐ŸŒ
CRAN
cran.r-project.org โ€บ web โ€บ packages โ€บ RColorBrewer โ€บ RColorBrewer.pdf pdf
RColorBrewer package - CRAN - R Project
For qualitative palettes, the lowest number of distinct values available always is 3, but the largest
๐ŸŒ
R-universe
neuwirthe.r-universe.dev โ€บ RColorBrewer
RColorBrewer: ColorBrewer Palettes - neuwirthe - R-universe
Provides color schemes for maps (and other graphics) designed by Cynthia Brewer as described at http://colorbrewer2.org.
๐ŸŒ
R Project
search.r-project.org โ€บ CRAN โ€บ refmans โ€บ RColorBrewer โ€บ html โ€บ ColorBrewer.html
R: ColorBrewer palettes
The critical class or break in the middle of the legend is emphasized with light colors and low and high extremes are emphasized with dark colors that have contrasting hues. 3. Qualitative palettes do not imply magnitude differences between legend classes, and hues are used to create the primary visual differences between classes. Qualitative schemes are best suited to representing nominal or categorical data.
๐ŸŒ
RDocumentation
rdocumentation.org โ€บ packages โ€บ RColorBrewer โ€บ versions โ€บ 1.1-3 โ€บ topics โ€บ RColorBrewer
RColorBrewer function - RDocumentation
3. Qualitative palettes do not imply magnitude differences between legend classes, and hues are used to create the primary visual differences between classes. Qualitative schemes are best suited to representing nominal or categorical data.
๐ŸŒ
CRAN
cran.r-project.org โ€บ package=RColorBrewer
RColorBrewer: ColorBrewer Palettes - CRAN - R Project
April 3, 2022 - Provides color schemes for maps (and other graphics) designed by Cynthia Brewer as described at http://colorbrewer2.org.
๐ŸŒ
UVA Library
library.virginia.edu โ€บ data โ€บ articles โ€บ setting-up-color-palettes-in-r
Setting up Color Palettes in R | UVA Library
June 10, 2016 - RColorBrewer provides three types of palettes: sequential, diverging and qualitative.
๐ŸŒ
Ul
di.fc.ul.pt โ€บ ~jpn โ€บ r โ€บ GraphicalTools โ€บ colorPalette.html
Color Palette
Qualitative palettes are best suited to representing nominal or categorical data ยท # install: install.packages('RColorBrewer') library(RColorBrewer) display.brewer.all() To get the colors of a given palette: brewer.pal(11,"Spectral") ## [1] "#9E0142" "#D53E4F" "#F46D43" "#FDAE61" "#FEE08B" "#FFFFBF" "#E6F598" ## [8] "#ABDDA4" "#66C2A5" "#3288BD" "#5E4FA2" display.brewer.pal(11,"Spectral") ggplot2 can use these palettes via the scale_brewer option.
๐ŸŒ
R-lib
scales.r-lib.org โ€บ reference โ€บ pal_brewer.html
Colour Brewer palette (discrete) โ€” pal_brewer โ€ข scales
If a string, will use that named palette. If a number, will index into the list of palettes of appropriate type ... Sets the order of colours in the scale. If 1, the default, colours are as output by RColorBrewer::brewer.pal().