powered by
Create a map by randomly selecting points
RandomMap(data, k, coordsFn)
map object (without the grid, if coordsFn was not specified)
coordsFn
Input data matrix, with individual data points in rows
How many points to sample
a function to generate embedding coordinates (default none)
d <- iris[,1:4] EmbedSOM::PlotEmbed( EmbedSOM::EmbedSOM( data = d, map = EmbedSOM::RandomMap(d, 30, EmbedSOM::GraphCoords())), pch=19, clust=iris[,5] )
Run the code above in your browser using DataLab