color_graph: Color nodes of graph given coloring method.

Description Usage Arguments Value

View source: R/graph-funcs.R

Description

Color nodes of graph given coloring method.

Usage

1
2
3
4
5
6
7
color_graph(
  f_sim_map,
  f_graph,
  f_time,
  my_colors,
  method = c("basic", "clust_shade", "clust_color", "none")
)

Arguments

f_sim_map

TDAmapper object

f_graph

igraph object, out put from graph.adjacency

f_time

Data frame of the original data but with only two columns: ID and val (e.g., time)

my_colors

Character vector of hex values specifying color palette for enrichment.

method

Character string specifying the coloring method. Can be 'basic', 'clust_shade' or 'clust_color'.

Value

Modified graph with colors at nodes.


trang1618/tdapseudotime documentation built on Feb. 9, 2021, 6:14 p.m.