cutshades: prepare shades and reorder to match cut

Description Usage Arguments Value Author(s) Examples

View source: R/clusterluts.R

Description

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.

Usage

1

Arguments

cut

vector of cluster assignments

col.fun

function mapping a number to that many colors from a palette

...

passed to color.shades

Value

color shades reordered (see details)

Author(s)

Benno Pütz puetz@psych.mpg.de

Examples

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)

bennop/clusterLUTs documentation built on Nov. 21, 2020, 9:07 a.m.