ColList: A list of colours for plots

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ColList.r

Description

Generates a list of colours for plots. This includes up to 15 colourblind-safe colours

Usage

1

Arguments

n

The number of colours required.

Value

A vector of characters with the names of the colours.

Author(s)

Alysha M De Livera, Jairus B Bowne

See Also

RColorBrewer.

Examples

1
2
3
    # Colour palette with colourblind-safe colours
    cols <- ColList(15)
    plot(1:15, 1:15, pch = 16, col = cols, cex = 2)

metabolomics documentation built on May 29, 2017, 3:32 p.m.