setTraitColors: Set trait color

Description Usage Arguments Value Examples

View source: R/processingDistances.R

Description

Set trait color

Usage

1

Arguments

df

A dataframe that shows connections for visNetwork

colors

An array of colors that defines trait color in graph

traits

An array of traits that needs to be colored

Value

A dataframe with changed colors

Examples

1
df <- setTraitColors(df, c("red", "green"), c("smoking", "aging"))

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