Learn R Programming

rPlotter (version 0.0.8)

simulate_colours: Simulate Three Different Types of Colour Blindness (Deuteranopia, Protanopia & Tritanopia)

Description

This function simulates three different types of colour blindness (http://www.color-blindness.com/2010/03/09/types-of-color-blindness/).

Usage

simulate_colours(inp_col)

Arguments

inp_col
Original Colours (Hex Code or Colour Names)

Examples

Run this code
set.seed(1234)
pal_pf <- extract_colours("http://www.scoutlondon.com/blog/wp-content/uploads/2012/05/Pulp-Fiction.jpg")
simulate_colours(pal_pf)

Run the code above in your browser using DataLab