convertInputColors: The R function for converting the data frame with colors to...

Description Usage Arguments Value Examples

View source: R/chromDrawGR.R

Description

The R function for converting the data frame with colors to chromDraw color data format. Output of this function is file "colors.txt" in the working directory.

Usage

1

Arguments

colors

data frame definition of coloros, containing color name and RGB of color values.

Value

return file with colors in working directory.

Examples

1
2
3
4
5
6
7
8
9
#colors generating
name <- c("yellow", "red", "blue", "violet", "orange", "green", "light_blue", "pink");
r <- c(255, 255, 0, 255, 247, 0, 0, 230);
g <- c(255, 0, 0, 0 ,148, 255, 255, 170);
b <- c(0, 0, 255, 255, 29, 0, 255, 160);
inputColors <- data.frame(name,r,g,b);

#run the function for generate chromDraw color file.
convertInputColors(inputColors);

Example output



chromDraw documentation built on Nov. 8, 2020, 5:30 p.m.