Skip to contents

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)

Author

Christine P'ng

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);