classify_kmeans | R Documentation |
Classify a integer or numeric raster using intervals calculated by kmeans cluster
classify_kmeans(r, num_cluster = 5, decimal_places = 2)
r |
SpatRaster raster to be classified |
num_cluster |
number of clusters to be processed |
decimal_places |
define the number of decimal places to legend |
SpatRaster with a categorical raster
# rk = classify_kmeans(r, 4, decimal_places = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.