gplot produces a simple two-dimensional plot of graph g in stack dat. A variety of options are available to control vertex placement, display details, color, etc.gplot(dat, g=1, gmode="digraph", diag=FALSE, label=c(1:dim(dat)[2]),
coord=NULL, jitter=TRUE, thresh=0, usearrows=TRUE, mode="mds",
displayisolates=TRUE, pad=0, vertex.pch = 19, label.cex=1,
vertex.cex=1, label.col=1, edge.col=1, vertex.col=1,
arrowhead.length=0.2, edge.type=1, edge.lwd = 0, ...)g==1."digraph" indicates that edges should be interpreted as directed; "graph" indicates that edges are undirected; "twomode" indicates that data should be interpreteddiag is FALSE by default.mode setting.thresh are displayed. By default, thresh=0."princoord", "eigen", "mds", "random", "circle", "circrand", "rmds", "geodist", "adj"edge.lwd*datplotmvagplot is the standard network visualization tool within the sna library. By means of clever selection of display parameters, a fair amount of display flexibility can be obtained.plotgplot(rgraph(5)) #Plot a random graphRun the code above in your browser using DataLab