Re: [Rd] Lattice: Drawing a single contour line with a negative value fails

2009-08-22 Thread Deepayan Sarkar
On 8/19/09, Thorn Thaler wrote: > Hi everybody, > > I want to add a single contourline to a levelplot. While everything works > fine if the value at which the line should be drawn is positive, there is an > error if the value is negative: > > library(lattice) > my.panel <- function(..., at, con

[Rd] Lattice: Drawing a single contour line with a negative value fails

2009-08-19 Thread Thorn Thaler
Hi everybody, I want to add a single contourline to a levelplot. While everything works fine if the value at which the line should be drawn is positive, there is an error if the value is negative: library(lattice) my.panel <- function(..., at, contour=FALSE, labels=NULL) { panel.levelplot(