powered by
Add lines to a network plot
addlines(Y,X,col="lightblue",alength=0,...)
a sociomatrix
coordinates of nodes
color of lines. Can be a vector of length equal to the number of edges to be drawn
length of arrows to be drawn
additional plotting parameters
Peter Hoff
data(addhealthc3) Y<-addhealthc3$Y X<-xnet(Y) netplot(Y,X) addlines(Y,X,col=Y[Y!=0])
Run the code above in your browser using DataLab