Description Usage Arguments Value Note Author(s) See Also Examples
This functions return a vector of length x
KML (Google Earth) colour codes using a pre-defined palettes ('seis').
1 | colour.scale(type = "seis", nlevels = 10, x = NULL, transparency = 0.9)
|
|
= default is |
|
= the number of unique colours to generate (default is 10) |
|
= a vector |
|
= the transparency of the resultant colours (default is 0.9) |
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
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.
unknown, <unknown>@dfo-mpo.gc.ca
Other poorly documented: A
,
applyMean
, applySum
,
break.list
, by2
,
compute.sums
,
convert.graphics.format
,
convert2factor
, dim_list
,
duplicates.toremove
, na.zero
,
nearest.sorted.angles
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.