I have used ltext in a panel function like in the code segment below:
print(levelplot(reslot ~ aisle + quad, reslot.df,
col.regions=topo.colors(max(quad.POG$values)),
panel=function(x, y, z, ...){
panel.levelplot(x, y, z, ...)
panel.abline(v=seq(1.5, by=1, length=length(aisleOrder)),
h=seq(1.5, by=1, length=26), col='gray')
ltext(x, y, z, col='red', font=1)
},
On Sun, Apr 5, 2009 at 5:42 AM, Ken Wilson <kwil342 at gmail.com>
wrote:> I am trying to visualize a 2D matrix, with some auxiliary labels associated
> with each rectangle in the chart. The image command and levelplot in the
> lattice package map data to colors, but I couldn't find any option to
> specify values I want to show. Is there an easy way to do this?
>
> Thanks,
> Ken
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?