plot cluster

plotK(scaledM, k, idx)

Arguments

scaledM

matrix with data

k

cluster assignment (same as nrow(scaledM))

idx

index of cluster

Examples

bb <- matrix(rnorm(100), ncol=5, nrow = 20)
k <- sample(1:3,20, replace = TRUE)
plotK(bb, k, idx = 3)

#>               [,1]        [,2]        [,3]        [,4]       [,5]
#>  [1,] -1.400043517  0.46815442  0.07003485  1.07434588  1.9243433
#>  [2,] -0.005571287  0.73777632 -0.25148344 -0.24589641  0.5562243
#>  [3,]  0.621552721  1.88850493  0.44479712 -1.17756331 -0.5482573
#>  [4,] -0.247325302 -0.01595031  0.57770907  0.13167063 -0.1556938
#>  [5,]  2.065024895  0.24368546 -0.20608719  1.33732041  1.0487126
#>  [6,]  0.512426950  0.11203808  0.02956075  1.31829338  0.4861489
#>  [7,] -1.863011492 -0.13399701  0.54982754  0.52390979  1.6728826
#>  [8,]  0.542996343 -0.31344598 -0.36122126  0.17218172  1.3168264
#>  [9,] -0.914074827  1.06730788  0.21335575 -0.09032729 -0.2966400