Learn R Programming

MenuCollection (version 1.2)

dovc: Associate a color vector to a data vector

Description

Color vector definition for multiple plots

Usage

dovc(d)

Arguments

d
data vector (numeric or character) of arbitrary length

Value

Details

Define a color for each data following these criteria:
  • if d is a character vector with length <20 :="" output="" a="" fixed="" list="" of="" different="" colors="" <="" li="">
  • if d is a character vector with length >20 : output a list of colors from the rainbow set
  • if d is a numeric vector: output a list of colors in the blue-red scale