I'm plotting the network graph pictured below using R and GGally::ggnet2.
You can see that there are several independent clusters disconnected from each other and these are quite spread out leaving a lot of empty space on the figure. Is it possible to make these clusters closer to each other thus making better use of the space?
Code to reproduce:
# Get datafile
wget https://www.dropbox.com/s/h4kt2fw1j4hdw3a/matrix.tsv
R
library(GGally)
library(network)
mat <- read.table('matrix.tsv')
net <- network(mat)
ggnet2(net, size= 1)
Trying different layouts might prove effective:
or you can experiment with the parameters of a specific layout using the
layout.par
argumentfor a complete list of options see ?sna::gplot.layout
Too find a pleasing layout you will need to experiment a bit with the options since they depend on the graph. To cite a part of the help ?sna::gplot.layout:
Another option is using visNetwork and after finding a good initial layout manually moving some vertices