Description Usage Arguments Value Author(s) See Also Examples
Set a reference prototype for the function plot.som with type = 'distances'. This cluster will be used as reference for the representation of its distances of all other clusters.
1 | set.current.case( object , current.index )
|
object |
a som object |
current.index |
index of a cluster of the som object. |
a som object
David Gohel
1 2 3 4 5 6 7 8 9 10 11 12 | library(MASS)
lcrabs <- log(crabs[, 4:8])
lcrabs.som <- som ( formula = ~ . , data = lcrabs
, neighborhood = "uniform"
, grid = grid ( xdim = 10 , ydim = 10 , type = "hexagonal" )
, weights.min = min (lcrabs), weights.max = max (lcrabs)
)
lcrabs.som <- learn( lcrabs.som , number.iter = 500 , max.alpha = 0.5, min.alpha = .001, max.rayon = 3 , step.eval.si = 50)
lcrabs.som <- set.current.case(lcrabs.som, 4)
plot(lcrabs.som, "distance", cex = .75, cex.label = 0.3 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.