mcri: Turns colours into similar colours from the Murdoch Childrens...

View source: R/XRank.R

mcriR Documentation

Turns colours into similar colours from the Murdoch Childrens Research Institute palette.

Description

Turns colours into similar colours from the Murdoch Childrens Research Institute palette.

Usage

mcri(col = "deafult", al = 1)

Arguments

col

character or numeric. Most common colours such as "green" or 'blue' are converted to MCRI. Numbers return the colour matching that number.

al

The alpha parameter: the opaqueness. Numeric between 0 and 1.

Details

The function return a colour from the MCRI palette if match found, otherwise the input is returned unchanged. call mcri() to see the available colours.

Examples

plot(1:9, rep(1,9), pch=16, cex=10, col=mcri(0:8))
text(1:9, rep(1.1,9), c('blue', 'orange', 'green', 'magenta',
                        'cyan', 'red', 'violet', 'darkblue', 'darkred'),
     col=mcri(0:8), cex=1.5, font=2)


ChristofferFlensburg/superFreq documentation built on Nov. 15, 2023, 6:15 a.m.