addlines | R Documentation |
Add lines to a network plot
addlines(Y,X,col="lightblue",alength=0,...)
Y |
a sociomatrix |
X |
coordinates of nodes |
col |
color of lines. Can be a vector of length equal to the number of edges to be drawn |
alength |
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])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.