Need help with viridis?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

sjmgarnier
241 Stars 33 Forks Other 142 Commits 15 Opened issues

Description

Colorblind-Friendly Color Maps for R

Services available

!
?

Need anything else?

Contributors list

# 219,963
R
TeX
r-packa...
rmarkdo...
68 commits
# 132,397
R
rcpp
TeX
literat...
14 commits
# 39,627
R
Racket
Svelte
ggplot-...
8 commits
# 64,163
R
React
htmlwid...
reactjs
2 commits
# 100,816
R
Shell
ggplot2
TeX
2 commits
# 10,145
R
r-packa...
shiny
bootstr...
1 commit
# 80,660
R
Shell
forecas...
Jupyter...
1 commit
# 65,458
R
Jupyter...
Shell
hugo
1 commit
# 358,277
functio...
R
curl
CSV
1 commit
# 97,505
R
ggplot-...
Shell
bookdow...
1 commit

viridis - Colorblind-Friendly Color Maps for R

cran version rstudio mirror per-month downloads rstudio mirror total downloads R-CMD-check Coverage Status DOI

Description

viridis
, and its companion package
viridisLite
provide a series of color maps that are 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.

viridisLite
provides the base functions for generating the color maps in base
R
. The package is meant to be as lightweight and dependency-free as possible for maximum compatibility with all the
R
ecosystem.
viridis
provides additional functionalities, in particular bindings for
ggplot2
.

The color maps

The latest version of

viridis
comes with 8 different color maps, and they are all very pretty!!!

Sample image


Installation

You can install

viridis
from
CRAN
by typing the following line in your R console:
install.packages("viridis")
library(viridis)

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

viridisLite
on your computer:
if (!require("devtools")) 
  install.packages("devtools")

devtools::install_github("sjmgarnier/viridis") library(viridis)


References

The color maps

viridis
,
magma
,
inferno
, and
plasma
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.

The color map

cividis
is a corrected version of 'viridis', developed by Jamie R. Nuñez, Christopher R. Anderton, and Ryan S. Renslow, and originally ported to
R
by Marco Sciaini (@msciain). More info about
cividis
can be found in this paper.

The color maps

mako
and
rocket
were originally created for the
Seaborn
statistical data visualization package for Python. More info about
mako
and
rocket
can be found on the
Seaborn
website
.

The color map

turbo
was developed by Anton Mikhailov to address the shortcomings of the Jet rainbow color map such as false detail, banding and color blindness ambiguity. More infor about
turbo
can be found here.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.