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 - R Tutorial
From the course: R: Interactive Visualizations with htmlwidgets
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
What is the visNetwork library?9m 57s
-
(Locked)
Create basic network diagrams7m 35s
-
(Locked)
Style visNetwork graph6m 27s
-
(Locked)
Use visNetwork with igraph5m 29s
-
(Locked)
Choose graph layouts and embeddings5m 5s
-
(Locked)
Cluster nodes in visNetwork using groups3m 56s
-
(Locked)
Add legends to visNetwork4m 51s
-
(Locked)
Extract click information from visNetwork8m 54s
-
-
-