sits_som_evaluate_cluster | R Documentation |
sits_som_evaluate_cluster()
produces a tibble with the clusters
found by the SOM map. For each cluster, it provides the percentage
of classes inside it.
sits_som_evaluate_cluster(som_map)
som_map |
A SOM map produced by the som_map() function |
A tibble stating the purity for each cluster
if (sits_run_examples()) {
# create a som map
som_map <- sits_som_map(samples_modis_ndvi)
# plot the som map
plot(som_map)
# evaluate the som map and create clusters
clusters_som <- sits_som_evaluate_cluster(som_map)
# plot the cluster evaluation
plot(clusters_som)
# clean the samples
new_samples <- sits_som_clean_samples(som_map)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.