Displaying 1 result from an estimated 1 matches for "smartbnds".
Did you mean:
smartbind
2010 Jul 23
0
overriding axis limits in hexbin plot?
...e plot method for 'hexbin' objects (which doesn't have 'xlim' or
'ylim' arguments) calls hexViewport as
hexViewport(x, offset = unit(legend, "inches"))
* in the absence of explicit 'xbnds'/'ybnds' arguments, hexViewport does
xyb <- smartBnds(x)
hvp at xscale <- xs <- if (is.null(xbnds))
xyb$xr
else xbnds
hvp at yscale <- ys <- if (is.null(ybnds))
xyb$yr
else ybnds
It looks like hexbin:::smartBnds computes x and y ranges from the
hexagonal cells in
the object, not looking at the xbnds and...