igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] plotting vertices in reference to a x-axis


From: Hermann Norpois
Subject: [igraph] plotting vertices in reference to a x-axis
Date: Fri, 15 Nov 2013 22:13:02 +0100

Dear list,

I wish to apologise for my first clumsy question. Second trial:

I have an igraph object gg (see below) and I want the vertices being plotted in the order of x (that goes from 1 to 9) in reference to a x-axis.
How do I create a x-axis and how can I plot my vertices in relation to this x-axis?
Can you please give me a hint how this might work.

I started with
>  plot (gg, edge.width=(E(g)$weight)^4)

but I did not find a way to include any x-axis information.

Thanks
Hermann

> dput (gg)
structure(list(9, TRUE, c(0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
1, 1, 2, 2, 2, 2, 2, 2), c(1, 2, 3, 4, 5, 6, 0, 2, 3, 4, 5, 6,
7, 8, 0, 1, 3, 4, 5, 6), c(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, 14, 15, 16, 17, 18, 19), c(6, 14, 0, 15, 1, 7, 2,
8, 16, 3, 9, 17, 4, 10, 18, 5, 11, 19, 12, 13), c(0, 6, 14, 20,
20, 20, 20, 20, 20, 20), c(0, 2, 4, 6, 9, 12, 15, 18, 19, 20),
    list(c(1, 0, 1), structure(list(), .Names = character(0)),
        structure(list(name = c("rs4822747", "rs4820690", "rs5761627",
        "rs5752355", "rs4822748", "rs4820691", "rs4822749", "rs4822750",
        "rs5761629"), color = c("red", "red", "red", "red", "red",
        "red", "red", "red", "red"), x = 1:9), .Names = c("name",    
        "color", "x")), structure(list(weight = c(0.78999, 0.695642,
        0.687861, 0.682715, 0.695642, 0.695642, 0.695642, 1,
        0.988681, 0.988655, 1, 1, 0.988655, 0.695642, 0.695642,
        1, 0.988681, 0.988655, 1, 1)), .Names = "weight"))), class = "igraph")


reply via email to

[Prev in Thread] Current Thread [Next in Thread]