Peter Dalgaard wrote:
> hoffman.mm+R-project.org@ebi.ac.uk writes: > >
> > > One way to decide is to compare with Splus. Now that doesn't have a > 'code' argument and the arguments are named x1,y1,x2,y2 (I wonder why > R wanted to be different here?), but they do put the arrowheads at the > *to* end, which does seem to be the sensible thing to do. > > Arguably, using 'code=2' as the default is a bit weird,
An argument for the current encoding is that it encodes arrowhead end in the bits of code: 00 = no arrowhead, 01 = arrowhead at origin, 10 = arrowhead at destination, 11 = arrowhead at both.
> but changing
> it could be quite painful. I.e., we should fix the docs.
Yes, definitely.
> BTW, the docs also might say that code=0 makes arrows behave like > segments(). It is also a bit strange that the code argument isn't > vectorized, which might have been useful.
Yes, that would be a reasonable change.
Duncan
This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:26:48 GMT