Description Usage Arguments Value Examples
View source: R/processingDistances.R
Set trait color
1 | setTraitColors(df, colors, traits)
|
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 |
A dataframe with changed colors
1 | df <- setTraitColors(df, c("red", "green"), c("smoking", "aging"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.