make_graph: Make igraph object by calculating adjacency, resizing nodes,...

Description Usage Arguments Value

View source: R/graph-funcs.R

Description

Make igraph object by calculating adjacency, resizing nodes, weighting edges and color nodes.

Usage

1
2
3
4
5
6
make_graph(
  f_sim_map,
  f_time,
  color_method = "clust_color",
  my_colors = c("#00A3DD", "#60C659", "#FFBC21", "#FF7F1E", "#EF2B2D")
)

Arguments

f_sim_map

TDAmapper object

f_time

Dataframe of id and enrichment variable. Default is time (performing time enrichment). However, f_time can contain any other variable.

color_method

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

my_colors

Character vector of hex values specifying color palette for enrichment.

Value

igraph object of the graph output.


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