[R] Search for a graph package - see link

Knut Krueger rh at krueger-family.de
Wed Apr 15 11:30:18 CEST 2009


Gábor Csárdi schrieb:
>   
Dear Gabor, I am very sorry but i am not able to reproduce your example.
there is no change, i am using r 2.8.0
> library(igraph)
> g <- graph.ring(3, dir=TRUE, mut=TRUE)
> g$layout <- layout.circle
>
> E(g)$curved <- 0.5
> plot(g)
>
> E(g)$curved <- 0.1
> plot(g)
>
>   
> It is a good idea to read the documentation as well, especially if you
> don't understand the code.
hmm maybe I do not understand, but there  is no parameter curves inside 
the parameter asignment
    params <- i.parse.plot.params(graph, list(...))
    vertex.size <- 1/200 * params("vertex", "size")
   ..    frame <- params("plot", "frame")
plot() is only called if !add I think this means only the first time
igraph.Arrows is used to draw the arrows and there I do not find any 
assignment for curved.

> It is a good idea to read the documentation as well,
See ?igraph.plotting and search for
> 'curved'.
>   

?igraph.plotting redirects me to plot.common.html
and there is no word inside beginning with curv...
I also did a complete text search, (before I asked you again) in all files of the R-directory
I found it only in the library diagram and network 

network.arrow(1,1,2,2,curve=0.1,width=0.01,col="red",border="black") # this is working fine
or for curved arrowheads.



Regards Knut




More information about the R-help mailing list