set.current.case: Set a reference prototype

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
set.current.case( object , current.index )

Arguments

object

a som object

current.index

index of a cluster of the som object.

Value

a som object

Author(s)

David Gohel

See Also

som plot.som

Examples

 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 )

harrysouthworth/kohonen documentation built on May 17, 2019, 3:03 p.m.