Learn R Programming

sits (version 0.13.0)

plot.som_evaluate_cluster: Plot information about confusion between clusters

Description

Plot a bar graph with informations about each cluster. The percentage of mixture between the clusters.

Usage

# S3 method for som_evaluate_cluster
plot(x, y, ..., name_cluster = NULL, title = "Confusion by cluster")

Arguments

x

object of class "plot.som_evaluate_cluster"

y

ignored

...

further specifications for plot.

name_cluster

Choose the cluster to plot

title

title of plot. default is ""Confusion by cluster"".

Value

The plot itself.

Examples

Run this code
# NOT RUN {
# Produce a cluster map

samples_mt_2bands <- sits_select(samples_mt_6bands, bands = c("NDVI", "EVI"))
som_map <- sits_som_map(samples_mt_2bands)
# Evaluate the clusters
cluster_overall <- sits_som_evaluate_cluster(som_map)
# Plot confusion between the clusters
plot(cluster_overall)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab