Re: [R] current.panel.limits() of lattice returning NaN limits - why?

2011-08-12 Thread Deepayan Sarkar
On Fri, Aug 12, 2011 at 12:15 PM, Fredrik Karlsson wrote: > Hi, > > I need a custom axis function for a plot, but it seems > that current.panel.limits() sometimes returns NaN limits for the plot, which > it much harder to calculate anything sensible. > An illustration: > > Given this axis function

[R] current.panel.limits() of lattice returning NaN limits - why?

2011-08-11 Thread Fredrik Karlsson
Hi, I need a custom axis function for a plot, but it seems that current.panel.limits() sometimes returns NaN limits for the plot, which it much harder to calculate anything sensible. An illustration: Given this axis function: vs.axis <- function(...){ xlim <- current.panel.limits()$xlim y