Learn R Programming

MenuCollection (version 1.0)

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 characters) of arbitrary length

Value

  • Color vector of the same length of the input data vector

Details

Define the colors to associate a data vector following defined criteria
  • if d is a character vector with length <20 :="" output="" a="" list="" from="" defined="" colors<="" li="">
if d is a character vector with length >20 : output a list from selected rainbow if d is a numeric vector with whatever length: output a list from blu-red scale

Examples

Run this code
dovc(1:30)

Run the code above in your browser using DataLab