Description Usage Arguments Author(s) Examples
Easy plotting of a colour key.
1 | plotColourKey(breaks, col, add = FALSE, ...)
|
breaks |
A numeric vector of length n giving the breakpoints of the key. |
col |
A character vector of the colours used of length n - 1. |
add |
Should the key be added to the current plot device? |
... |
Arguments passed to |
Anders Ellern Bilgrau <anders.ellern.bilgrau (at) gmail.com>
1 2 3 4 5 | brks <- seq(0, 1, length.out = 8)
cls <- rainbow(7)
plotColourKey(brks, cls)
axis(1)
axis(2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.