-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NA values break plot.errors #35
Comments
I also have come to the errors package only in the past few weeks (and I had actually written a similar, but much less useful package, a few days ago). This "range" = c(min(...), max(...)) which I think ought to read "range" = c(min(..., na.rm=na.rm), max(..., na.rm=na.rm)) |
Oh, and also the |
Thanks for your reports. @dankelley You are right about
The problem is that we don't want error bars to be cut out of the plotting range by default, but I agree that a user-provided |
In fact, it was a incorrect implementation of |
|
Just discovered this package (after thinking about writing my own) -- it's great! Thanks!
I noticed that
xlim
andylim
are hard-coded in theNextMethod()
call forplot.errors()
to berange(x)
andrange(y)
.One problem with this is that it is impossible to control the axis limits of the plot (say, to focus on a region or reverse an axes).
Another issue is that if
x
ory
have NAs they causeplot.errors()
to fail:I don't see why
plot.errors()
isn't simply written as:Note that using the
na.rm=TRUE
argument inrange()
doesn't help, as it still returnsc(NA, NA)
forrange(y)
. I assume that this is due to the interaction the baserange()
function with theerrors-class
object and it doesn't know what to do with it?The text was updated successfully, but these errors were encountered: