Skip to content
Prev 99796 / 398498 Next

forcing levelplot to use relative cuts (ie cuts for each panel)

On 9/13/06, Mike Townsley <uctcmkt at ucl.ac.uk> wrote:
Mostly that you have to catch the arguments you want to use/replace, e.g.

levelplot(z~x+y|site, data = aaa, panel = function(..., z, at) {
          panel.levelplot(..., z = z, at = quantile(z)) })

This won't actually give you want, you will need:

levelplot(z~x+y|site, data = aaa, panel = function(..., z, subscripts, at) {
          panel.levelplot(..., z = z, subscripts = subscripts, at =
quantile(z[subscripts])) })

?panel.levelplot should explain why.

Deepayan