viridisLite v0.1.3

0

Monthly downloads

0th

Percentile

by Simon Garnier

Default Color Maps from 'matplotlib' (Lite Version)

Port of the new 'matplotlib' color maps ('viridis' - the default -, 'magma', 'plasma' and 'inferno') to 'R'. 'matplotlib' <http://matplotlib.org/ > is a popular plotting library for 'python'. These 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. This is the 'lite' version of the more complete 'viridis' package that can be found at <https://cran.r-project.org/package=viridis>.

Readme

viridisLite

rstudio mirror downloads cran version

Matplotlib recently [introduced new color maps] (http://matplotlib.org/style_changes.html) 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!

NOTE: viridisLite is the 'lite' version of the more complete viridis package. viridisLite contains only the core functions of viridis that generate the color vectors for each of the aforementioned color maps. It does not have any of the other features of the full viridis package (e.g. scale functions for ggplot2). This was requested by users of viridis who did not want to have to import the dependencies of viridis but still wanted to be able to use the color maps it provides.


Look how pretty they are!

Sample image


Installation

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

install.packages("viridisLite")
library(viridisLite)

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/viridisLite")

library(viridisLite)

Maintainer(s)

Simon Garnier - @sjmgarnier - garnier@njit.edu


References

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.

Functions in viridisLite

Name Description
viridis.map Original 'viridis' color map
viridis Matplotlib 'viridis' color map
No Results!

Last month downloads

Details

Type Package
Date 2016-03-11
License MIT + file LICENSE
LazyData TRUE
Encoding UTF-8
URL https://github.com/sjmgarnier/viridisLite
BugReports https://github.com/sjmgarnier/viridisLite/issues
RoxygenNote 5.0.1
NeedsCompilation no
Packaged 2016-03-12 00:33:31 UTC; simon
Repository CRAN
Date/Publication 2016-03-12 06:17:45

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/viridisLite)](http://www.rdocumentation.org/packages/viridisLite)