gplot.target(dat, x, circ.rad = (1:10)/10, circ.col = "blue", circ.lwd = 1, circ.lty = 3, circ.lab = TRUE, circ.lab.cex = 0.75, circ.lab.theta = pi, circ.lab.col = 1, circ.lab.digits = 1, circ.lab.offset = 0.025, periph.outside = FALSE, periph.outside.offset = 1.2, ...)
dat
). periph.outside==TRUE
. gplot
. gplot.layout.target
)
gplot.target
is a front-end to gplot
which implements the target diagram layout of Brandes et al. (2003). This layout seeks to optimize various aesthetic criteria, given the constraint that all vertices lie at fixed radii from the origin (set by x
). One important feature of this algorithm is that vertices which belong to mutual dyads (described by Brandes et al. as ``core'' vertices) are treated differently from vertices which do not (``peripheral'' vertices). Layout is optimized for core vertices prior to placing peripheral vertices; thus, the result may be misleading if mutuality is not a salient characteristic of the data.The layout for gplot.target
is handled by gplot.layout.target
; additional parameters are specied on the associated manual page. Standard arguments may be passed to gplot
, as well.
gplot.layout.target
, gplot
#Generate a random graph
g<-rgraph(15)
#Produce a target diagram, centering by betweenness
gplot.target(g,betweenness(g))
Run the code above in your browser using DataLab