I have a problem concerning network visualization using the igraph package provided in R.
Assume that you have a certain network, which contains the total sample of
The reason is that igraph plotting functions rescale the layout to [-1,1] x [-1,1]
by default. You can use the rescale=FALSE
argument to plot()
and then no rescaling is performed.
Note that in this case you'll need to set the limits of the plot by hand, by setting xlim
and ylim
:
xlim <- range(lay[,1])
ylim <- range(lay[,2])
plot.igraph(inetX, layout = lay, vertex.size = 20,
xlim = xlim, ylim = ylim, rescale = FALSE)
plot.igraph(inetY, layout = lay[idx,], vertex.size = 14,
add = TRUE, rescale = FALSE)