Add lines to a network plot

addlines(Y,X,col="lightblue",alength=0,...)

Arguments

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

Author

Peter Hoff

Examples

data(addhealthc3) Y<-addhealthc3$Y X<-xnet(Y)
#> Loading required package: network
#> network: Classes for Relational Data #> Version 1.16.1 created on 2020-10-06. #> copyright (c) 2005, Carter T. Butts, University of California-Irvine #> Mark S. Handcock, University of California -- Los Angeles #> David R. Hunter, Penn State University #> Martina Morris, University of Washington #> Skye Bender-deMoll, University of Washington #> For citation information, type citation("network"). #> Type help("network-package") to get started.
netplot(Y,X)
addlines(Y,X,col=Y[Y!=0])