Skip to content
Prev 68144 / 398525 Next

overlaying a contour line in a levelplot

On Wednesday 20 April 2005 09:16, Jorge Ahumada wrote:
You are going about this all wrong. Here's the correct way (with 
different data since you haven't given us a reproducible example):

levelplot(volcano,
          panel = function(..., at, region = TRUE, contour = FALSE) {
              panel.levelplot(..., at = at,
                              region = region,
                              contour = contour)
              panel.levelplot(..., at = 140,
                              region = FALSE,
                              contour = TRUE)
          })

Deepayan