[R] Curved arrows

Gábor Csárdi csardi at rmki.kfki.hu
Thu Apr 30 11:08:24 CEST 2009


Paul,

there might be other solutions as well, but there is an internal
function in the igraph package that can draw curved arrows, it is
called igraph:::igraph.Arrows(). As it is an internal function, it is
not documented, but I think it is pretty straightforward to use. For
the 'curved' argument you can give a number, try values between 0 and
1, or (if I remember well)  -1 and 0 if you want it to curve towards
the opposite side.

Best,
Gabor

On Thu, Apr 30, 2009 at 10:57 AM, Paul Chatfield
<p.s.chatfield at rdg.ac.uk> wrote:
>
> I'm trying to draw an arrow with a curved shaft on the graph as a straight
> one looks messy on a detailed graph.  I've looked in arrows but it doesn't
> seem to give an option.  larrows doesn't look much more promising.  I had a
> look in the archive and couldn't find anything.  Any thoughts?
>
> Thanks
>
> Paul
> --
> View this message in context: http://www.nabble.com/Curved-arrows-tp23312316p23312316.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 <Gabor.Csardi at unil.ch>     UNIL DGM




More information about the R-help mailing list