View source: R/plot.functions.R
radian.rescale | R Documentation |
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)
x |
A numeric vector of positions around a circle, typically sequentially numbered. |
start |
A number giving the offset from 12 o'clock in radians for the label locations. |
direction |
Either |
A numeric vector of rescaled values
https://gist.github.com/kjhealy/834774/a4e677401fd6e4c319135dabeaf9894393f9392c
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.