groupColor: Assign color by group

Description Usage Arguments Value Examples

View source: R/processingDistances.R

Description

Assign color by group

Usage

1
groupColor(data, colorData, colors)

Arguments

data

A dataframe from makeConnections

colorData

A dataframe with group names and study.id

colors

A list of colors that should be assigned for each group

Value

A dataframe with colors by group name

Examples

1
2
colored_data <- groupColor(data, colorData, c("yellow", "green"))
colored_data <- groupColor(data, colorData, c("#22105", "#00FF4E"))

askv4694/ewasvisual documentation built on Dec. 19, 2021, 5:36 a.m.