add_pie.Rd
Adds pie charts over nodes in a network plot to visualize node attributes.
add_pie(x, p, sf, coord, cols, r = NULL, pielabel = NULL, ...)
A network object or adjacency matrix.
A matrix of proportions for each slice (rows = slices, columns = nodes).
Vertex scaling factor.
A matrix of x and y coordinates for the nodes.
A vector or matrix of colors for the pie slices.
Optional radius for each pie chart (default is sf/10
).
Optional list of arguments for pie.labels()
.
Additional arguments passed to gplot()
.
A network plot with pie charts added to nodes.