Closed lindsayplatt closed 7 years ago
I agree w/ what @jiwalker-usgs said. this looks fine to me too, but we should (as in the past) just be able to pass the args on to points w/ y=NULL and have that function handle it appropriately.
@jread-usgs have points.gsplot handle it appropriately or graphics::points? The issue seems to be that we never pass it to points.default which calls plot.xy and handles this issue of y=NULL.
I meant graphics::points
, but I guess maybe this never worked correctly then?
I guess I'm struggling with the override
function and how UseMethod
works. It should get to points.default somehow, which handles the xy indexing https://svn.r-project.org/R/trunk/src/library/graphics/R/points.R
Does not label x axis as "Index" and y with range. Works for logged axes and keeps user-specified axis labels. Also works with dates and other classes. It also works for
lines
.See #245
Originally, I had implemented this using
xy.coords
since that is whatpoints.default
andlines.default
call, but if coerces data into numeric.