I want to create three graphs using the tie probabilities. In those graphs, Block 1 has 20 nodes, Block 2 has 20 nodes, and Block 3 has 10 nodes. I want to plot each network, with nodes colored by block membership. I tried this but unsuccessful. I suspect the problem is in pref.matrix=kbm. The error says this: Error in structure(as.double(pref.matrix), dim = dim(pref.matrix)) : argument "pref.matrix" is missing, with no default
art_sbm <- sample_sbm(50,pref.matrix=kbm,block.sizes=c(20,20,10),directed=FALSE)
plot(art_sbm,vertex.color=c(rep(1,20),rep(2,20),rep(1,10)),main="Artificial Network")
assortativity.nominal(art_sbm,c(rep(1,20),rep(2,20),rep(1,10)))