createVisNetwork: createVisNetwork

View source: R/visNetwork.R

createVisNetworkR Documentation

createVisNetwork

Description

Generates network map using the nodes and edges objects generated by getNodes and getEdges functions respectively.

Usage

createVisNetwork(
  nodes,
  edges,
  background = "lightblue",
  border = "darkblue",
  highlight = "yellow"
)

Arguments

nodes

Nodes.

edges

Edges.

background

Background color.

border

Border color.

highlight

Highlight color.

Value

Network map visualization

Author(s)

Jayachandra N

Examples

nodes <- getNodes(head(mtcars), c("cyl", "gear", "vs"), group = TRUE)
res <- fixNodeBias(head(mtcars))
edges <- getEdges(getAssociation(res), getNodes(res, group = TRUE))
createVisNetwork(nodes, edges)

netknitr documentation built on April 3, 2025, 5:47 p.m.