Re: [R] Ellipsis arguments for plot.formula

2008-07-11 Thread Amit Ganatra
, 2008, 9:45 AM > You could replace the one line in my.plot with this: > > eval.parent(substitute(plot( x, y, cex.axis=0.5, ...))) > > > On Fri, Jul 11, 2008 at 10:41 AM, Amit Ganatra > <[EMAIL PROTECTED]> wrote: > > > > Thank you. That does work for the titl

Re: [R] Ellipsis arguments for plot.formula

2008-07-11 Thread Amit Ganatra
u > >> basically need to > >> construct the plot call with the evaluated > variables. The > >> V&R reference > >> shows you one way to do this (see the > "Computing on > >> the Language" chapter, > >> if memory serves). The

Re: [R] Ellipsis arguments for plot.formula

2008-07-11 Thread Amit Ganatra
> nothing. While bugs > certainly can and do arise, I think our first and almost > always correct > impulse should be to assume that there's something that > we don't understand > and phrase our queries accordingly. We owe the developers > this courtesy. > > Ch

[R] Ellipsis arguments for plot.formula

2008-07-10 Thread Amit Ganatra
Hi: I have a function as follows: my.plot<- function( x, y = NULL, ... ) { plot( x, y, cex.axis=0.5, ...) } Set up the variables: x <- 1:10; y <- x; tdf <- data.frame( x, y ); main.str <- "test" I will exercise the function in two ways: > my.plot( y ~ x, tdf, main = "test" ) This works fi