[R] Plot can't forget bad parameters

Ross Boylan
2003-10-03T00:20:21Z

On Thu, 2003-10-02 at 16:54, Toby.Patterson at csiro.au
wrote:
> Try
>
> rm(last.warning)
>
> -----Original Message-----
> From: Ross Boylan [mailto:ross at biostat.ucsf.edu]
> Sent: Friday, 3 October 2003 9:10 AM
> To: r-help
> Subject: [R] Plot can't forget bad parameters
>
>
> When I give plot some bad paramaters, it keeps giving me error messages
> forever after.  I think the last time this happened, I even got the
> error messages for completely unrelated, non-graphical functions.
>
> Here's a recent example:
> > plot(it[[31]][,c(1, 3)], type="b", usr=c(0, 20, -20, 5))
> Warning messages:
> 1: parameter "usr" couldn't be set in high-level plot()
function
> 2: parameter "usr" couldn't be set in high-level plot()
function
> 3: parameter "usr" couldn't be set in high-level plot()
function
> 4: parameter "usr" couldn't be set in high-level plot()
function
> 5: parameter "usr" couldn't be set in high-level plot()
function
> 6: parameter "usr" couldn't be set in high-level plot()
function
> > plot(it[[31]][,c(1, 3)], type="b", ylim=c(-20, 5))
> Warning messages:
> 1: parameter "usr" couldn't be set in high-level plot()
function
> 2: parameter "usr" couldn't be set in high-level plot()
function
> 3: parameter "usr" couldn't be set in high-level plot()
function
> 4: parameter "usr" couldn't be set in high-level plot()
function
> 5: parameter "usr" couldn't be set in high-level plot()
function
> 6....
>
> Is this a bug, or have I missed something?
> R 1.7.1

Well, that's very odd.  I did the rm(), and it printed out the warnings
again.  Then I repeated the two commands above--only this time, there
were no warnings after the second (i.e., things worked OK).