colour.scale: colour.scale

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/colour.scale.r

Description

This functions return a vector of length x KML (Google Earth) colour codes using a pre-defined palettes ('seis').

Usage

1
colour.scale(type = "seis", nlevels = 10, x = NULL, transparency = 0.9)

Arguments

type

= default is seis

nlevels

= the number of unique colours to generate (default is 10)

x

= a vector

transparency

= the transparency of the resultant colours (default is 0.9)

Value

list of 2: $y is a vector of x-1 length, which can used to assign the colours of $cols to the original vector x; $cols is a vector of KML colours of length nlevels

Note

not totally sure if this function works as intended. It seems as though nlevels should return the number of colours specified - not one less. Jae or Adam might have more information about this.

Author(s)

unknown, <unknown>@dfo-mpo.gc.ca

See Also

Other poorly documented: A, applyMean, applySum, break.list, by2, compute.sums, convert.graphics.format, convert2factor, dim_list, duplicates.toremove, infinite2NA, na.zero, nearest.sorted.angles

Examples

1
2
3
4
5
6
7
8
colour.scale(nlevels=3,x=seq(1:6))
$y
[1] 1 1 2 2 3 3

$cols
code
1 e68B0000
2 e600008B

Beothuk/bio.utilities documentation built on May 5, 2019, 1:39 p.m.