Want to learn more? Take the full course at [ Ссылка ] at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work.
---
There are many ways of visualizing social networks.
There are many things one can change about network vertices and edges, such as their size and color or by adding text. There are also many different layouts that can be used to arrange vertices and edges.
Many of these look very attractive whilst others, particularly if there are a large number of vertices and edges, look incredibly bad.
The most effective network visualizations should immediately provide insight and understanding to the viewer.
There are a number of simple dos and don'ts that will help you think about how best to depict your network visualizations.
The most commonly adjusted features of vertices in network visualizations are size, labels, color and shape.
You have already investigated how to change some of these in igraph in the previous exercises.
Adjusting size is excellent for highlighting key or influential vertices. For instance, larger vertices maybe those that are more central with a higher number of interconnections.
Adding labels can also help identify key vertices, although too much text on a network visualization can render it hard to read.
Color and shape are particularly useful for communicating differences in categorical vertex attributes.
For edges, in addition to altering the thickness of lines to represent edge weights, you can also change the color or line type to indicate the type of interconnectivity between vertices.
These styles can be done separately or in conjunction with each other. The most important consideration is to ensure that they highlight those key pieces of information that you wish to communicate to the audience.
Many different layout algorithms have been generated that assist with how best to layout vertices when creating network visualizations. The igraph package contains all of the most common ones and they can be selected using the layout argument when plotting. These algorithms will attempt to follow these general rules when visualizing network graphs.
Firstly, edges should not cross each other and vertices should not overlap with each other as much as is possible. Secondly, edges should ideally be as equal in length to each other as is feasible.
Most algorithms also attempt to increase the symmetry of vertices in the layout and position key nodes towards the center.
Here the same network graph is depicted using some of the different layout options provided by igraph.
In igraph you can change the layout by adding the layout argument to the plot function.
When creating your own network it is worth trying different layouts to identify which allows key network information to be communicated most efficiently.
In the next two exercises, you will further explore how to create effective network visualizations in igraph.
Now it's your turn.
#DataCamp #RTutorial #NetworkAnalysisinR
Ещё видео!