Skip to content
Prev 277621 / 398506 Next

equal spacing of the polygons in levelplot key (lattice)

OK, how about this instead?

# library('lattice')
levs <- as.vector(quantile(volcano,c(0,0.1,0.5,0.9,0.99,1)))
levq <- seq(min(levs), max(levs), length = 6)
levelplot(volcano, at = levs,
           colorkey = list(at = levq,
                                 labels = list(at = levq,
                                                   labels = levs) ))

Dennis
On Wed, Nov 16, 2011 at 10:27 AM, Andy Bunn <Andy.Bunn at wwu.edu> wrote: