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 < https://cran.r-project.org/package=viridisLite>.
Matplotlib recently [introduced new color maps]
(http://matplotlib.org/style_changes.html) for their graphs. They are called
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")devtools::install_github("sjmgarnier/viridis")library(viridis)