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")
)

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 (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.


covidclinical/Phase2.1TDAPseudotimeRPackage documentation built on Sept. 27, 2020, 12:03 a.m.