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)
Value
a vector of breakpoints to be used by draw.grid and legend.grid
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.