RandomMap | R Documentation |
Create a map by randomly selecting points
RandomMap(data, k, coordsFn)
data |
Input data matrix, with individual data points in rows |
k |
How many points to sample |
coordsFn |
a function to generate embedding coordinates (default none) |
map object (without the grid, if coordsFn
was not specified)
d <- iris[,1:4] EmbedSOM::PlotEmbed( EmbedSOM::EmbedSOM( data = d, map = EmbedSOM::RandomMap(d, 30, EmbedSOM::GraphCoords())), pch=19, clust=iris[,5] )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.