BoutrosLab.plotting.general (version 5.9.2)

display.colours: Function to display R colors, as well as corresponding R grey colours.

Description

Displays R colors and their corresponding R grey colours.

Usage

display.colours(
	cols, 
	names = cols
	);

Arguments

cols

Vector of colours to be displayed.

names

The names of the colours. Defaults to equal the input of cols

Details

For further information on colour schemes, refer to the colour guide (in Resources/general)

Examples

Run this code
# NOT RUN {
display.colours('red');
# Red and Grey are displayed

display.colours(default.colours(5));
# Five default colours and their grey values are displayed

test.colours <- force.colour.scheme(c('skin','nerve'), 'tissue');
display.colours(test.colours);

# }

Run the code above in your browser using DataLab