color_circos_links: color_circos_links

Description Usage Arguments Value Author(s) Examples

View source: R/color_circos_links.R

Description

A function designed to assign random colors from the 'randomcoloR' package to a 'make_circos_links()' generated data frame.

Usage

1
2
3
color_circos_links(df, hue = c(" ", "random", "red", "orange", "yellow",
  "green", "blue", "purple", "pink", "monochrome"), luminosity = c(" ",
  "random", "light", "bright", "dark"))

Arguments

df

A data frame containing circos links information - as from 'make_circos_links()'.

hue

Desired hue of the links.

luminosity

Desired luminosity of the links.

Value

Returns original links data frame with an added '$color' column in RGB format for Circos plotting.

Author(s)

Matthew Woodruff, Emory University

Examples

1
2
3
4
df <- data.frame(x = rnorm(50), y = rnorm(50))
str(df)
df <- color_circos_links(df)
str(df)

SanzCircos documentation built on May 1, 2019, 7:55 p.m.