You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working with vertex size is not easy on igraph as that is a function of the plotting region itself. This can be solved by rescaling the vertex size considering the plotting region, further, as done in Gephi, users could provide vertex size and relative scale (minimum/maximum sizes) to the plotting area (e.g. 0.5% and 1.0% of the plotting area). The following code does exactly that:
The default in this function will return a vector of length n that can be passed to plot.igraph(...,add=TRUE), resulting on vertices that take sizes between 0.5% and 1% of the plotting region, so if you change the layout (and hence the plotting region) the vertices will have the same size.
The adjust parameter follows a rescaling that igraph does internally when drawing figures via symbols. I would like to include this a patch in igraph but that implies adding extra parameters to the igraph.plotting function and I'm not completely aware of how doing that.
I write this post as a suggestion from Gabor during the useR! 2016 conference.
The text was updated successfully, but these errors were encountered:
Working with vertex size is not easy on igraph as that is a function of the plotting region itself. This can be solved by rescaling the vertex size considering the plotting region, further, as done in Gephi, users could provide vertex size and relative scale (minimum/maximum sizes) to the plotting area (e.g. 0.5% and 1.0% of the plotting area). The following code does exactly that:
The default in this function will return a vector of length
n
that can be passed toplot.igraph(...,add=TRUE)
, resulting on vertices that take sizes between 0.5% and 1% of the plotting region, so if you change the layout (and hence the plotting region) the vertices will have the same size.The
adjust
parameter follows a rescaling that igraph does internally when drawing figures viasymbols
. I would like to include this a patch in igraph but that implies adding extra parameters to theigraph.plotting
function and I'm not completely aware of how doing that.I write this post as a suggestion from Gabor during the useR! 2016 conference.
The text was updated successfully, but these errors were encountered: