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.1 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, rasterVis, httr, mapproj, vdiffr, svglite, testthat, covr, rmarkdown, rgdal

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

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

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

See at CRAN