On Wed, Apr 15, 2009 at 9:35 AM, Knut Krueger <r...@krueger-family.de> wrote: > Gábor Csárdi schrieb: >> >>> The would prefer two parallel arrows one for each direction. >>> >> >> You can set 'curved' to a value close to zero and then the arrows will >> be only a bit curved. >> >> > > No I am lost ... do you mean? > ... > E(g)$curved <- 0.5 > ... > plot.igraph(g, layout=layout.kamada.kawai, vertex.label.font=2) > I do not see any change ..
Because 0.5 the default value. Try 0.1. I.e. 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) > and I do not found any curved assignment in the plot.igraph function. It is a good idea to read the documentation as well, especially if you don't understand the code. See ?igraph.plotting and search for 'curved'. [...] > http://www.equine-science.de/temp/r-graph.jpg [...] That possible with igraph, you need to define a new vertex shape for it. See ?igraph.vertex.shapes and the R/plot.shapes.R file for some simple example shapes. Or you can write the whole thing for yourself, using 'segments', etc. G. > Regards Knut > > ______________________________________________ > R-help@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.csa...@unil.ch> UNIL DGM ______________________________________________ R-help@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.