[Top][All Lists]

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

Re: [igraph] igraph: how to select specific edges

From: Gábor Csárdi
Subject: Re: [igraph] igraph: how to select specific edges
Date: Sat, 12 Jan 2013 13:23:57 -0500

On Sat, Jan 12, 2013 at 12:51 PM, Biau David <address@hidden> wrote:
Ok thanks, it works. I tried the legend() but it didn't work as expected.

Here is an example:


g <- graph.ring(10)
V(g)$shape <- c("square", "circle")
V(g)$frame.color <- c("cyan", "orange")
V(g)$color <- "white"
E(g)$color <- c("blue", "green")

plot(g, margin=.2)
legend("topright", lty=c(NA, NA, 1, 1),
       col=c("cyan", "orange", "blue", "green"),
       c("Foo", "Bar", "Foobar", "Barfoo"))

legend() is not quite perfect with vertex shapes, so yes, maybe igraph would need its own legend function.

I will work on it. Congrats for your package, it is just great!

reply via email to

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