Skip to content
Prev 139017 / 398506 Next

Calling plot with a formula, from within a function, using ..., and xlim

On Mar 9, 2008, at 1:29 PM, Prof Brian Ripley wrote:

            
Thanks, I have indeed not gotten into the habit of using R's  
debugging tools, it would have helped me considerably in this case,  
as would reading ?plot.formula.
It is interesting, that in the actual case where I am using this I am  
passing a number of other graphics parameters, and it so happened all  
the others were constants (well OK, maybe "interesting" is not the  
correct word).

I am guessing this behaviour of plot.formula is so as to allow the  
use of variables from the data frame in the specification of graphics  
parameters like col, lty etc?

Your suggestion does indeed work very nicely in my case. I could  
probably do away from the formula interface altogether, but it is a  
convenient way of specifying the axis labels in my case.

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College