Skip to content

Curved arrows

3 messages · Paul Chatfield, Gábor Csárdi, Greg Snow

#
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
#
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:

  
    
#
?xspline for the shaft, do the head by hand (or using arrows with a very short shaft)