From the course: R: Interactive Visualizations with htmlwidgets

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use visNetwork with igraph

Use visNetwork with igraph - R Tutorial

From the course: R: Interactive Visualizations with htmlwidgets

Start my 1-month free trial

Use visNetwork with igraph

- [Instructor] visNetwork is an excellent tool for creating interactive network diagrams. It's built on top of the vis.js library, which really excels in this area. But it's not a tool for analyzing graphs. That's where igraph comes in. igraph is an extremely powerful toolkit for social network analysis and graph theory. igraph is a library made available to both R and Python users through dedicated packages. The igraph package operates on objects of the class igraph, which are very easy to create and provide a consistent approach to graph analytical problems. These objects can then be given directly to visNetwork. I'm going to demonstrate why the igraph library's so useful and worth investing your time in. Let's go to our exercise files in our studio. Okay, so let's open up our file, igraph and visNetwork.R. I'm going to minimize my environment because I don't need it for these exercises. At the top of the script file, we load the tidyverse library, with command, enter. This loads…

Contents