[R] controlling plot range

Thomas Lumley tlumley at u.washington.edu
Mon Oct 22 16:32:27 CEST 2007


On Fri, 19 Oct 2007, John Sorkin wrote:
>
> As Marc points out, the documentation does say that usr can only be set 
> by par. Perhaps the R development team would consider modifying the code 
> of plot to check for the usr parameter, and if found print an error 
> message.

Unfortunately it's not as easy as this.  plot() is a generic function, and 
there is nothing to stop someone from defining a method with a parameter 
called 'usr'.  For NextMethod() to work, plot() must be able to ignore 
parameters it does not understand.

 	-thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle



More information about the R-help mailing list