From the course: R: Interactive Visualizations with htmlwidgets
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Choose graph layouts and embeddings - R Tutorial
From the course: R: Interactive Visualizations with htmlwidgets
Choose graph layouts and embeddings
- [Instructor] VisNetwork is an excellent HTML widget for building interactive drawings or graph, but I think it's quite important to understand a little bit about the theory of graph drawing or the visualization of networks and how a viewer might understand them. There are many different graph layout algorithms that are used to decide how to layout nodes and the edges between them Many of these layouts are non-deterministic. Meaning that a physics simulation has been run to iteratively decide how to place nodes in the network. This means that typically graphs look different from computer to computer, and a graph will never look the same on your own computer, unless you use the exact same random seed. Many people who are unfamiliar with graph theory believe there was a correct way or particular view of a network, which best represents the data, but it's really important to note that graph layout can be misleading. I'm going to show you how to make these networks in a few minutes, but…
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
-
Create basic network diagrams7m 35s
-
Style visNetwork graph6m 27s
-
Use visNetwork with igraph5m 29s
-
Choose graph layouts and embeddings5m 5s
-
Cluster nodes in visNetwork using groups3m 56s
-
Add legends to visNetwork4m 51s
-
Extract click information from visNetwork8m 54s
-
-
-