Produce a circular network plot.
circplot(
Y,
U = NULL,
V = NULL,
row.names = rownames(Y),
col.names = colnames(Y),
plotnames = TRUE,
vscale = 0.8,
pscale = 1.75,
mscale = 0.3,
lcol = "gray",
rcol = "brown",
ccol = "blue",
pch = 16,
lty = 3,
jitter = 0.1 * (nrow(Y)/(1 + nrow(Y))),
bty = "n",
add = FALSE
)
(matrix) m by n relational matrix.
(matrix) m by 2 matrix of row factors of Y.
(matrix) n by 2 matrix of column factors of Y.
(character vector) names of the row objects.
(character vector) names of the columns objects.
(logical) plot row and column names.
(scalar) scaling factor for V coordinates.
(scalar) scaling factor for plotting characters.
(scalar) scaling factor for plotting characters.
(scalar or vector) line color(s) for the nonzero elements of Y.
(scalar or vector) node color(s) for the rows.
(scalar or vector) node color(s) for the columns.
(integer) plotting character.
(integer) line type.
(scalar) a number to control jittering of nodes.
(character) bounding box type.
(logical) add to existing plot
Peter Hoff
This function creates a circle plot of a relational matrix or social network.
If not supplied via U
and V
, two-dimensional row factors and
column factors are computed from the SVD of Y
, scaled versions of
which are used to plot positions on the outside edge (U
) and inside
edge (V
) of the circle plot. The magnitudes of the plotting characters
are determined by the magnitudes of the rows of U
and V
.
Segments are drawn between each row object i
and column object
j
for which Y[i,j]!=0
.
data(IR90s)
circplot(IR90s$dyadvars[,,1])
Run the code above in your browser using DataLab