show.shades: Show shading in histogram-style plot

Description Usage Arguments Details Value Author(s) Examples

View source: R/clusterluts.R

Description

The color matrix shades is expected to have an attribute 'reps' indicating the number of shades for each main color (and, thus, the number of main colors.)

Usage

1
show.shades(shades, orient = c("horizontal", "vertical"), r = 0.45, ...)

Arguments

shades

shades as produced by color.shades

orient

orientation for main colors

r

"radius" for color boxes, should be less than 0.5

...

ignored

Details

The "base" colors are shown along the axis indicated by orient, the shades are stacked perpendicular to that. If the shades were created with dir = 'all', the shade stacks are aligned on the base colors

Value

none

Author(s)

Benno Pütz puetz@psych.mpg.de

Examples

1
2
rainbow.shades <- color.shades(sample(1:10, 20, TRUE))
show.shades(rainbow.shades)

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