Description Usage Arguments Details Value Author(s) Examples
Build a matrix that can be used to plot the direct neighbourhood relationship in the prior structure of a Self-Organising Map.
1 | grid2lines(som,prototypes)
|
som |
an object of class |
prototypes |
the coordinates of the objects to link in the result
matrix (if missing, the coordinates of the prototypes of the
|
grid2lines
returns a transformed version of the coordinate matrix
prototypes
(or of the prototypes of a the fitted Self-Organising
Map som
). It can be used with,
e.g., lines
to draw edges between prototypes that are
direct neighbours in the prior structure (NA
values are inserted
to prevent draw edges between unconnected prototypes).
a matrix with the same number of columns as the original dataset used by
the som
object.
Fabrice Rossi
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.