Skip to content
Prev 179128 / 398506 Next

lattice levelplot axis + custom annotations

On May 2, 2009, at 11:05 PM, Alex Reynolds wrote:

            
Yes. Unfortunately, I have no experiences with sticking polygons on  
axes. If you could live with the labels of your particular items, then  
this example was modified from the ones on the help page for  
latticeExtra::dendrogramGrob.

levelplot(x[, col.ord],
           aspect = "iso",xlab="",ylab="",
           scales = list(x=list(draw=F), y= list(at=c(1,10,15))),
           colorkey = FALSE,
           legend =
           list(right =
                list(fun = dendrogramGrob,
                     args =
                     list(x = dd.col, ord = col.ord,
                          side = "right",
                          size = 10))))

There is a panel.polygon function but my reading of Sarkar's Lattice  
book suggests that it would only draw within a plotting region. I  
don't have Murrell's Grid Graphics, which I suspect may contain the  
answers.
The example to which I used after some guesswork, or another?

David Winsemius, MD
Heritage Laboratories
West Hartford, CT