Learn R Programming

netknitr (version 0.2.1)

createVisNetwork: 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"
)

Value

Network map visualization

Arguments

nodes

Nodes.

edges

Edges.

background

Background color.

border

Border color.

highlight

Highlight color.

Author

Jayachandra N

Examples

Run this code
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)

Run the code above in your browser using DataLab