dplot3_graphd3: Plot graph using 'networkD3'

View source: R/dplot3_graphd3.R

dplot3_graphd3R Documentation

Plot graph using networkD3

Description

Plot graph using networkD3

Usage

dplot3_graphd3(
  net,
  groups = NULL,
  color.scale = NULL,
  edge.col = NULL,
  node.col = NULL,
  node.alpha = 0.5,
  edge.alpha = 0.33,
  zoom = TRUE,
  legend = FALSE,
  palette = rtPalette,
  theme = rtTheme,
  ...
)

Arguments

net

igraph network

groups

Vector, length n nodes indicating group/cluster/community membership of nodes in net

color.scale

D3 colorscale (e.g. networkD3::JS("d3.scaleOrdinal(d3.schemeCategory20b);"))

edge.col

Color for edges

node.col

Color for nodes

node.alpha

Float [0, 1]: Node opacity. Default = .5

edge.alpha

Float [0, 1]: Edge opacity. Default = .33

zoom

Logical: If TRUE, graph is zoomable. Default = TRUE

legend

Logical: If TRUE, display legend for groups

palette

Vector of colors, or Character defining a builtin palette - get options with rtpalette()

theme

rtemis theme to use

...

Additional arguments to pass to networkD3

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on May 4, 2024, 7:40 p.m.