0
votes

We have an non square adjacency matrix p (197x190)matrix without weights (only 1 if the 2 telephone numbers have called with each other and 0 otherwise). We tried to visualize this with a graph using this simple code and the igraph package:

p<-as.matrix(dcast(SNA_data, A_NUMBER~B_NUMBER, value.var="W", fill=0))[,] graph<-graph.adjacency(p, mode="undirected", weighted=NULL) plot(graph)

The result is a very small graph in plot that is totally unreadable graph anybody knows how to solve this?

Thanks in advance.

1

1 Answers

0
votes

Try to use x11() to plot your graph in an external window :

library(igraph)
adjm1<-matrix(sample(0:1,1000,replace=TRUE,prob=c(0.9,01)),nc=10) 
g1<-graph.adjacency(adjm1)
x11()
plot(g1)

Reference for the simulation : using graph.adjacency() in R