Description Usage Arguments Value Examples
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.
1 |
colors |
data frame definition of coloros, containing color name and RGB of color values. |
return file with colors in working directory.
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);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.