Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

visClusteringByConnection

Network visualization clustering options - by node id


Description

Network visualization clustering options - by node id

Usage

visClusteringByConnection(graph, nodes)

Arguments

graph

: a visNetwork object

nodes

: Character/vector. id of nodes we want to cluster

Examples

set.seed(124)
nodes <- data.frame(id = 1:10, color = c(rep("blue", 6), rep("red", 3), rep("green", 1)))
edges <- data.frame(from = round(runif(6)*10), to = round(runif(6)*10))

 visNetwork(nodes, edges) %>%
   visClusteringByConnection(nodes = 9)

visNetwork

Network Visualization using 'vis.js' Library

v2.0.9
MIT + file LICENSE
Authors
Almende B.V. [aut, cph] (vis.js library in htmlwidgets/lib, http://visjs.org, http://www.almende.com/home), Benoit Thieurmel [aut, cre] (R interface), Titouan Robert [aut, ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.