dot-chooseGrpCol: Automatic choice of colors

.chooseGrpColR Documentation

Automatic choice of colors

Description

This function allows to do automatic choice of colors: if single-> grey, if few -> RColorBrewer, if many : gradient green -> grey/red

Usage

.chooseGrpCol(
  nGrp,
  paired = FALSE,
  alph = 0.2,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

nGrp

(numeric vector) main input

paired

(logical)

alph

(numeric vector)

silent

(logical) suppress messages

debug

(logical) additional messages for debugging

callFrom

(character) allow easier tracking of messages produced#'

Value

This function returns a character vector with color codes

See Also

rgb; colorAccording2

Examples

.chooseGrpCol(4)	

wrMisc documentation built on Sept. 11, 2024, 6:10 p.m.