Hi,

Unfortunately, igraph's layout algorithms know nothing about the labels;
they simply treat each vertex of the graph as a point with no extents at
all. If you have complex visualization needs (like tweaking the
visualization in an interactive way to avoid overlaps between vertices and
labels), you are probably better off with using a tool that is focused on
graph visualization such as Cytoscape or Gephi.

All the best,

T.

On Wed, Jun 8, 2016 at 2:17 PM, Laura Tossan <[email protected]> wrote:

>
>
>
>
>
>
> Hello, I have a question about the igraph package.
> I posted this on stackoverflow.com but I didn't receive any answer.
>
> I have a problem using the igraph package to plot a graph. However the
> result is not fully satisfying as the nodes names aren't all readable.
>
> This is the code I used to plot :
>
> plot(g, layout_nicely(g), asp=FALSE, vertex.shape=V(g)$shape, 
> vertex.label.dist=0.3,
>  vertex.label.degree=-pi/2)
>
> And this is the result <http://i.stack.imgur.com/ucswN.png>
>
> I've tried to reduce the number of characters of each label, or to reduce
> their font sizes but it wasn't enough. I also used several layout such as
> layout.kamada.kawai, layout.fruchterman.reingold but the labels are always
> too close to each others. Is there any way to choose a better position for
> the labels or to increase the length of the edges ?
>
> Thank you in advance for your help
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>  Garanti
> sans virus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#m_-8184783774192390346_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to