custom_net: Customise igraph objects using ggraph

Description Usage Arguments Value

Description

Customise igraph objects using ggraph

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
custom_net(
  igraph_net,
  AP = NULL,
  limits = NA,
  ranges = c(0, 15),
  manual_xy = NULL,
  order_leftright = "pseudotime",
  ascend_order = T,
  coloring = NULL,
  nudge_ratio = 0,
  hide_node_thres = NULL,
  plot_title = NULL,
  size_legend = F
)

Arguments

igraph_net

an igraph object

manual_xy

the x and y coordinates for the plots

order_leftright

order the points from left to right according to the a feature of the vertices, e.g. pseudotime. If this is set to be NULL, no reordering will occur unless manual_xy is not NULL. If order_leftright is not NULL, the setting will override that in manual_xy.

ascend_order

order the pseudotime in the ascending order, i.e. the lowest value will be colored purple, highest yellow according to the viridis scale.

coloring

a vector with the same length as the number of nodes that provide the colors

nudge_ratio

by how much the labels are radiated from the center

hide_node_thres

below which node size are the nodes and the associated connections hidden.

Value

a ggplot object


Yutong441/TBdev documentation built on Dec. 18, 2021, 8:22 p.m.