get_cat_palette: Generate a colour-blind friendly palette for categorical...

View source: R/get_cat_palette.R

get_cat_paletteR Documentation

Generate a colour-blind friendly palette for categorical colour encoding

Description

For a given number of categories, identify a suitable palette of colours which are colour-blind friendly. Palettes are derived from http://mkweb.bcgsc.ca/colorblind/palettes.mhtml#page-container

Usage

get_cat_palette(n)

Arguments

n

numeric. The number of colours required.

Value

Returns a character with the Hex codes for the colour palette.


CambridgeCentreForProteomics/camprotR documentation built on July 7, 2024, 2:13 a.m.