From Bill.Venables at csiro.au  Wed Jan 31 02:52:27 2007
From: Bill.Venables at csiro.au (Bill.Venables at csiro.au)
Date: Wed, 31 Jan 2007 11:52:27 +1000
Subject: [Rd] segments and arrows generic?
References: <45BE7D11.60108@fhcrc.org>
Message-ID: <B998A44C8986644EA8029CFE6396A924840CBA@exqld2-bne.qld.csiro.au>

Has anyone ever suggested making segments() and arrows() generic (as
indeed they are in another not dissimilar implementation)?

The practical issue with these functions is the need to specify origin
and destination using four separate arguments.  It would be much more
convenient to use only two.  If segments were (S4) generic, for example,
you could write methods for 

signature(x0 = "matrix", y0 = "matrix", x1 = "missing", y1 = "missing")
signature(x0 = "complex", y0 = "complex", x1 = "missing", y1 =
"missing")

With the present function as the default method, no existing working
code would be affected.

Bill Venables



[Rd] segments and arrows generic?
Bill.Venables at csiro.au