[R] Questions about 'igraph' package.......

Gábor Csárdi csardi at rmki.kfki.hu
Mon Mar 28 21:57:43 CEST 2011


On Mon, Mar 28, 2011 at 3:12 PM, karena <dr.jzhou at gmail.com> wrote:
> One more question is:
>
> when you plot the gene network, you only get a number on each node, then how
> can you match the numbers to the genes?

V(g)$name gives the vertex names, in the order of vertex ids. E.g.
here is how to create a simple mapping matrix:

cbind(V(g), V(g)$name)

Best,
Gabor

> thank you very much,
>
> Karena
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Questions-about-igraph-package-tp3412734p3412745.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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 <csardi at rmki.kfki.hu>     MTA KFKI RMKI



More information about the R-help mailing list