powered by
Plot Kohonen's self-organizing maps.
# S3 method for som plot(x, type = c("scatter", "mapping"), col = NULL, labels = FALSE, ...)
The Kohonen's map (object of class som-class).
som-class
The type of plot.
Color of the data points
A vector of character strings to be printed instead of points in the plot.
vector
Other parameters.
SOM, som-class
SOM
require (datasets) data (iris) som = SOM (iris [, -5], xdim = 5, ydim = 5, post = "ward", k = 3) plot (som) # Scatter plot (default) plot (som, type = "mapping") # Kohonen map
Run the code above in your browser using DataLab