powered by
Plot the graph of a sociomatrix
netplot(Y,X=NULL,xaxt="n",yaxt="n",xlab="",ylab="", lcol="gray",ncol="black",lwd=1,lty=1,pch=16,bty="n",plotnames=FALSE, seed=1, plot.iso=TRUE,directed=NULL,add=FALSE,...)
a sociomatrix
coordinates for plotting the nodes
x-axis type
y-axis type
x-axis label
y-axis label
edge color
node color (can be node-specific)
line width
line type
plotting character for nodes (can be node-specific)
bounding box type
plot rownames of Y as node labels
random seed
include isolates in plot
draw arrows
add to an existing plot region
additional plotting parameters
Peter Hoff
data(addhealthc3) Y<-addhealthc3$Y X<-xnet(Y) netplot(Y,X)
Run the code above in your browser using DataLab