[R] multiple functions with three dots

From: John Lande <john.lande77_at_gmail.com>
Date: Fri, 1 Feb 2008 15:33:36 +0100

Dear all,

I am creating functions with the "three dot" strategy. I wold like to have suggestion when writing multiple functions that calls multiple functions with "...".

I will give you a couple of example:


>example=function(x,y, z, ...){

   plot(x,y, ...)
   points(x,z, ...)



how can I set different parameters for points and plot functions? for example in plot I want to have bigger dots (lwd=3), while in the points I want to have green dots.

any suggestion?

thank you.

        [[alternative HTML version deleted]]

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. Received on Fri 01 Feb 2008 - 16:47:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 02 Feb 2008 - 06:30:10 GMT.

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

list of date sections of archive