classify(x, method="equalinterval", breaks, Range=range(x, finite=TRUE),
sdlab=1, quiet=FALSE)
method=standarddeviation
. 1 means -0.5 sd, 0.5 sd
, 2 means -1 sd, mean, 1 sd
, 3 means actual numbers for type 1, 4 means numbers for type 2.colPoints
method
| explanation | meaning of breaks
| default
---------- | ----------- | ----------- | -------
equalinterval | nbins equally spaced classes | nbins | 100
quantile | classes have equal number of values | the quantiles (or number of them) | 0:4/4
standarddeviation | normal distributions | the number of sd in one direction from the mean | 3
logspaced | nbins logarithmically spaced | c(nbins, base), see logSpaced
| c(100,1.2)
usergiven | custom breakpoints | personal breakpoint values (including ends of Range) | none
}
The default is set to equalinterval which makes sense for my original intent
of plotting lake depth (bathymetry measured at irregularly distributed points) on a linear color scale.
This is the workhorse for colPoints
.colPoints
classify( c(1:10, 20), breaks=12)
classify( c(1:10, 20), "q", breaks=0:10/10)
classify( c(1:10, 20), "s", sdlab=2 )
classify( c(1:10, 20), "s", sdlab=1, breaks=2 )
classify( c(1:10, 20), "u", breaks=c(5,27) )
classify( c(1:10, 20), "l")
Run the code above in your browser using DataLab