I have this figure plotted with the layout.circle
algorithm of the `igraph package.
Some labels of the self-loop ties on the left are not clearly visible since are placed behind inter-nodes edges. Is there any tweak I could apply to improve the readability of the plot without changing the distance of the labels? (I guess that plotting the loops on the radial vectors of the circle is out of the question without recoding the whole thing...)
This is the code
par(mar=c(0,0,0,0))
plot(g,
layout=layout.circle,
vertex.label.family="Palatino",
edge.label.family="Palatino",
edge.label.cex=0.7,
vertex.size=log(V(g)$community_size)+7,
vertex.label=V(g)$community_size,
edge.width=log(E(g)$weight),
edge.label=E(g)$weight)
Plot the same graph twice, first with the edges, but without the labels, and then without the edges and the vertices and with the labels. Some useful bits:
add=TRUE
.none
.NA
, or the empty string.To fix the layout, pre-calculate it and store it in a variable:
lay <- layout.circle(g)
plot(g, layout=lay, ...)
plot(g, add=TRUE, layout=lay, ...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With