plot_ggraph: plot_ggraph

Description Usage Arguments Examples

View source: R/plot_ggraph.R

Description

This function will plot a ggraph object from an igraph object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_ggraph(
  input_igraph,
  color,
  width,
  col_lab = NULL,
  width_lab = NULL,
  scale = "diverge",
  render = T,
  colpal = c("blue", "red"),
  label = F,
  label_nodes = NULL
)

Arguments

input_igraph

the igraph object

color

color of edges

width

width of edges

col_lab

label of color legend

width_lab

label of width legend

scale

"continuous" or "diverge"

render

Whether or not a plot will be rendered

colpal

a vector of length 2 for colors

label

whether or not to label nodes

label_nodes

subset of nodes to label

Examples

1
test_net <- plot_ggraph(input_igraph = test_net, color = "rho", width = "log_p", scale = "diverge")

kgellatl/COLDNet documentation built on Jan. 23, 2021, 9:29 a.m.