[Rd] segments and arrows generic?

From: <Bill.Venables_at_csiro.au>
Date: Wed 31 Jan 2007 - 01:52:27 GMT

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

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Jan 31 12:55:14 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 31 Jan 2007 - 11:31:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.