Getting Started with Network Graphs in R
Add the vertices. Connect them with edges. Repeat as necessary.
Graph theory is an entire branch of mathematics, but it’s not too complicated to get started with drawing network graphs in R. The igraph R package, which is also available in Python and C, takes care a lot of the work, so that you can mostly focus on adding edges and vertices.
To access this full tutorial and download the source code you must be a member. (If you are already a member, log in here.)
Gain instant access to step-by-step visualization courses and tutorials for insight and presentation — all while supporting an independent site. Source code and data is included so that you can more easily apply what you learn in your own work.
Members also recieve a weekly newsletter, The Process, which looks more closely at the tools, the rules, and the guidelines and how they work in practice.
See samples of everything you gain access to:
More Tutorials See All →
How I Made That: Animated Square Pie Chart
Also known as waffle charts. Using animated transitions between values, you can allow for comparisons between categories.
How I Made That: Searchable Time Series Chart
When there are too many options or categories, it can be helpful to make the data searchable.
A Variety of Area Charts with R
From the basic area chart, to the stacked version, to the streamgraph, the geometry is similar. Once you know how to do one, you can do them all.