| plot.som_map {sits} | R Documentation |
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.
## S3 method for class 'som_map' plot(x, y, ..., type = "codes", band = 1)
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. |
The plot itself.
Gilberto Camara, gilberto.camara@inpe.br
## 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)