# NOT RUN {
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')
# }
Run the code above in your browser using DataLab