[R] Modify the vertex label

Gábor Csárdi csardi at rmki.kfki.hu
Mon Sep 27 17:07:21 CEST 2010


Hi,

set the 'vertex.label.dist' parameter:

g <- graph.ring(10)
tkplot(g, vertex.label.dist=1, layout=layout.circle)

See ?igraph.plotting for details.

Best,
Gabor

On Mon, Sep 27, 2010 at 11:18 AM, anderson nuel <anderson.nue at gmail.com> wrote:
> Dear r-help,
>
> I create a graph of my baysian network. I use the package igraph. The names
> of vertex are within the circle, I would leave them outside the circle?
>
>> E(g)$color <- "black"
>
>> tkplot(g, ,vertex.label=names,layout=layout.kamada.kawai,
> edge.color=E(g)$color)
>
>
> Best Regards
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Gabor Csardi <Gabor.Csardi at unil.ch>     UNIL DGM



More information about the R-help mailing list