Description Usage Arguments Details Value Author(s) References Examples
A function to categorize (discretize) numerical data in the form of a raster layer, or a vector.
| 1 | categorize(x,nc,...)
 | 
| x |  A  | 
| nc | Number of classes, if missing, it will be automatically detected | 
| ... |  Additional parameters for  | 
If nc is not specified, the function calls the function nclass to find the best number of classes. For the details of how nclass works, see the reference.
| RasterLayer | if x is a  | 
| numeric vector | if x is a numeric  | 
Babak Naimi naimi.b@gmail.com
Naimi. B. et al. (under review) ELSA: An Entropy-based Local indicators of Spatial Association, Geographical Analysis;
| 1 2 3 4 5 6 7 | categorize(1:10,3) # categorizeing a numeric vector into 3 categories
file <- system.file('external/dem_example.grd',package='elsa')
r <- raster(file)
plot(r,main='a continuous raster map')
rc <- categorize(r,nc=4)
plot(rc, main='categorized map')
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.