Description Usage Arguments Value Author(s) Examples
For the given cut cut
analyze the internal structure of each cluster
and use that as basis for a shading through color.shades
. Then
reorder the shading to arrange according to cluster members.
1 | cutshades(cut, col.fun = default.rgb, ...)
|
cut |
vector of cluster assignments |
col.fun |
function mapping a number to that many colors from a palette |
... |
passed to |
color shades reordered (see details)
Benno Pütz puetz@psych.mpg.de
1 2 3 4 5 6 | set.seed(42);
(cs <- cutshades(ct <- sample(6, 15, TRUE)))
op <- par(mfrow=2:1)
show.colmat(cs, width=15)
show.shades(cs)
par(op)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.