Learn R Programming

sits (version 1.1.0)

plot.som_map: 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:

  • "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", band = 1)

Value

No return value, called for side effects.

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.

Author

Gilberto Camara, gilberto.camara@inpe.br

Examples

Run this code
if (sits_run_examples()) {
    # create a SOM map
    som_map <- sits_som_map(samples_modis_4bands)
    # plot the SOM map
    plot(som_map)
}

Run the code above in your browser using DataLab