Learn R Programming

foodwebWrapper (version 1.1.0)

mapFunctionsColors: mapFunctionsColors

Description

map functions to color coding

Usage

mapFunctionsColors(row1, col1, colors)

Value

returns a character vector mapping colors to package names

Arguments

row1

character vector containing names of packages

col1

character vector containing names of packages

colors

character vector containing names of colors

Examples

Run this code
if(interactive()){
colors<-c("darkmagenta","darkolivegreen","darkorange3","brown4","red","blue")
load("data/x_m3.RData")
colorMap<-mapFunctionsColors(x_m3[1,c(-1,-2)],x_m3[c(-1,-2),1],colors)
}

Run the code above in your browser using DataLab