breaks.grid {mapplots} | R Documentation |
Define breakpoints for colour scales
Description
This function can be used to define breakpoints for use with the functions draw.grid
and legend.grid
Usage
breaks.grid(grd, quantile = 0.975, ncol = 12, zero = TRUE)
Arguments
grd |
an array produced by |
quantile |
the maximum value of the breaks will be determined by the quantile given here. This can be used to deal with outlying values in |
ncol |
number of colours to be used, always one more than the number of breakpoints. Defaults to 12. |
zero |
logical, should zero be included as a separate category? Defaults to |
Value
a vector of breakpoints to be used by draw.grid
and legend.grid
Author(s)
Hans Gerritsen
See Also
Examples
breaks.grid(100,ncol=6)
breaks.grid(100,ncol=5,zero=FALSE)
# create breaks on the log scale
exp(breaks.grid(log(10000),ncol=4,zero=FALSE))
[Package mapplots version 1.5.2 Index]