breaks.grid: Defines breakpoints for draw.grid and legend.grid; mapplots fork
Description
Defines breakpoints from values in grd with options to exclude outliers,
set number of bins, and include a dedicated zero column.
Forked by SD 05/01/2019 to add 'lo', else bins always begin at 0, killing
plotting when all data are in a tight range at high values e.g. 600:610
Usage
breaks.grid(grd, quantile = 0.975, ncol = 12, zero = TRUE)
Value
A vector of breakpoints for draw.grid in mapplots
Arguments
grd
An array produced by make.grid or a list produced by
make.multigrid or a vector of positive values.
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 grd.
If quantile = 1 then the maximum value of the breaks will be the same as the
maximum value in grd.
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 TRUE.