plot.som_map {sits}R Documentation

Plot a SOM map

Description

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

Usage

## S3 method for class 'som_map'
plot(x, y, ..., type = "codes", band = 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.

band

What band will be plotted.

Value

The plot itself.

Author(s)

Gilberto Camara, gilberto.camara@inpe.br

Examples

## Not run: 
# Produce a cluster map
samples_mt_2bands <- sits_select(samples_modis_4bands, 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")

## End(Not run)


[Package sits version 0.16.2 Index]