Function to display R colors, as well as corresponding R grey colours.
display.colours.Rd
Displays R colors and their corresponding R grey colours.
Arguments
- cols
Vector of colours to be displayed.
- names
The names of the colours. Defaults to equal the input of cols
Examples
display.colours('red');
# Red and Grey are displayed
display.colours(default.colours(5));
#> Warning: Colour scheme may not be greyscale compatible.
# Five default colours and their grey values are displayed
test.colours <- force.colour.scheme(c('skin','nerve'), 'tissue');
display.colours(test.colours);