convertInputColors {chromDraw} | R Documentation

## The R function for converting the data frame with colors to chromDraw color data format.

### 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

    convertInputColors(colors);

### Arguments

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

### Value

return file with colors in working directory.

### Examples

    #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);

[Package chromDraw version 2.17.0 Index]