Colorblind-Friendly Color Maps for R

Color maps designed to improve graph readability for readers with common forms of color blindness and/or color vision deficiency. The color maps are also perceptually-uniform, both in regular form and also when converted to black-and-white for printing. This package also contains 'ggplot2' bindings for discrete and continuous color and fill scales. A lean version of the package called 'viridisLite' that does not include the 'ggplot2' bindings can be found at <>.

Matplotlib recently [introduced new color maps] ( for their graphs. They are called viridis, magma, inferno, and plasma. viridis was made the new default color map of Matplotlib.

These four color maps are designed in such a way that they will analytically be perfectly perceptually-uniform, both in regular form and also when converted to black-and-white. They are also designed to be perceived by readers with the most common form of color blindness.

AND... they are pretty!

AND... they are now available for R!

viridis 0.3.3 is now available on CRAN.
You can install it using RStudio package manager or by typing the following line in your R terminal:


If you prefer to install the development version from this GitHub repository, simply copy the following lines of code in your R terminal and it should install everything you need to use viridis on your computer:

if (!require("devtools")) install.packages("devtools")

See the vignette for more details.

Simon Garnier - @sjmgarnier - [email protected]

The color maps in the viridis package were created by Stéfan van der Walt (@stefanv) and Nathaniel Smith (@njsmith).

If you want to know more about the science behind the creation of these color maps, you can watch this presentation of viridis by their authors at SciPy 2015.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.6.2 by Simon Garnier, a month ago,

Report a bug at

Browse source code at

Authors: Simon Garnier [aut, cre] , Noam Ross [ctb, cph] , Bob Rudis [ctb, cph] , Marco Sciaini [ctb, cph] , Antônio Pedro Camargo [ctb, cph] , Cédric Scherer [ctb, cph]

Documentation:   PDF Manual  

Task views: Analysis of Spatial Data

MIT + file LICENSE license

Imports stats, ggplot2, gridExtra

Depends on viridisLite

Suggests hexbin, scales, MASS, knitr, dichromat, colorspace, raster, rasterVis, httr, mapproj, vdiffr, svglite, testthat, covr, rmarkdown, rgdal, maps

Imported by BNPdensity, BiBitR, CIDER, CINNA, DIGSS, DiagrammeR, EHRtemporalVariability, FielDHub, ForestGapR, GGUM, Hmisc, Infusion, LDATS, Ostats, PAMmisc, PheVis, RcmdrPlugin.BiclustGUI, RprobitB, SPARSEMODr, SPUTNIK, SUMMER, SleepCycles, TSstudio, VDSM, aweSOM, bayesvl, behaviorchange, bioRad, c3, chronicle, clustMD, clustree, coloc, corHMM, cylcop, dendextend, dendroTools, dissever, distantia, dynaSpec, dyngen, ecochange, ecorest, eemR, eesim, effectR, ergmclust, escalation, fitbitViz, foodingraph, forestr, fsbrain, geouy, ggraph, gwpcormapper, idmodelr, leaflet, lineartestr, loewesadditivity, memoria, mgcViz, mobirep, mptools, multiplestressR, nandb, naniar, neatStats, noaastormevents, nullabor, occCite, pRecipe, pdp, plotdap, qad, quadmesh, rmweather, rosetta, rwty, scUtils, simmr, simplevis, skpr, spatialRF, spatialTIME, spatialrisk, spectralAnalysis, sptotal, tidyHeatmap, tidygate, trip, umiAnalyzer, virtualPollen, whoa, wilson, yaps, zGPS.AO.

Depended on by bsem, fields, gamblers.ruin.gameplay, heatmaply, reinsureR.

Suggested by ARPobservation, CAST, CSFA, CoordinateCleaner, DSjobtracker, ENMTools, MOSS, OmicInt, Rmagic, SFSI, SIBER, SimSurvey, arcos, baRulho, bayesmove, catmaply, colorspace, ctpm, cytometree, eSDM, eclust, fastai, galah, gbm, geocmeans, ggpointdensity, ggside, glmmfields, grattan, himach, httk, iNZightPlots, industRial, leri, marqLevAlg, metR, moderndive, nosoi, palr, pdSpecEst, permutes, platetools, protti, rKOMICS, rangeMapper, rayshader, semtree, spbabel, spectralGraphTopology, stacomiR, stars, starvz, statebins, sugrrants, tcensReg, themetagenomics, tidyjson, torchaudio, troopdata, ufs, wacolors.

See at CRAN