Useful for graphs drawn using igraph
to reposition labels relative to vertices when vertices
are laid out in a circle (as is common in network plots). igraph
interprets position within
vertex.label.degree
as radians, so it is necessary to convert locations into radian values. This
is the main role of this function.
radian.rescale(x, start = 0, direction = 1)
A numeric vector of rescaled values
A numeric vector of positions around a circle, typically sequentially numbered.
A number giving the offset from 12 o'clock in radians for the label locations.
Either 1
for clockwise numbering (based on the order of x
) or -1
for
anti-clockwise.
https://gist.github.com/kjhealy/834774/a4e677401fd6e4c319135dabeaf9894393f9392c