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

Description Usage Arguments Value Examples

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
7
make_tda_graph(
  f_sim_map,
  data,
  enrich_var,
  color_method = "clust_color",
  my_colors = c("#00A3DD", "#60C659", "#FFBC21", "#FF7F1E", "#EF2B2D")
)

Arguments

f_sim_map

TDAmapper object

data

Processe data frame of the original data.

enrich_var

Character string of enrichment variable. Any column name of the processed data frame.

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.

Examples

1
2

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