Learn R Programming

sits (version 0.13.0)

plot.som_map: Generic interface for plotting a SOM map

Description

plots a SOM map generated by "sits_som_map" The plot function produces different plots based on the input data:

  • "codes": Plot the vector weight for in each neuron.

  • "mapping": Shows where samples are mapped.

Usage

# S3 method for som_map
plot(x, y, ..., type = "codes", whatmap = 1)

Arguments

x

Object of class "som_map"

y

Ignored

...

Further specifications for plot.

type

Type of plot: "codes" for neuron weight (time series) and "mapping" for the number of samples allocated in a neuron.

whatmap

What data layer will be plotted.

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)
# Plot the clusters
plot(som_map, type = "codes")
# Plot kohonen map showing where the samples were allocated
plot(som_map, type = "mapping")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab