addlines: Add lines

View source: R/addlines.R

addlinesR Documentation

Add lines

Description

Add lines to a network plot

Usage

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(s)

Peter Hoff

Examples


data(addhealthc3) 
Y<-addhealthc3$Y
X<-xnet(Y) 
netplot(Y,X) 
addlines(Y,X,col=Y[Y!=0]) 


amen documentation built on May 29, 2024, 9:58 a.m.