mod_color_layer: mod_color_layer

Description Usage Arguments Value Examples

View source: R/mod_layers.R

Description

function to modify the color layer (colors of the node)

Usage

1
mod_color_layer(data, data_new_colors, no_matching_col = "old")

Arguments

data

List of two ffdf objects (format generated by the geNet() function )

data_new_colors

dataframe that reports the new colors for each node

no_matching_col

default color in case of no matching (i.e. gene IDs of the network not reported in data_new_colors)

  • old: the color of no matching nodes is the old color.

  • white: the color of no matching nodes is white ("white" is a reserved color)

Default to "white".

Value

data: data object modified with the new color layer

Examples

1
## Not run: mod_color_layer(data,data_new_colors,no_matching_col="white")

haneylab/geNet documentation built on Oct. 4, 2020, 8:40 a.m.