Re: [R] Label Values in levelplot

2010-06-27 Thread Felix Andrews
something like panel = function(x, y, z, ...) { panel.levelplot(x, y, z, ...) panel.text(x, y, labels = z) } (if you have multiple panels you will need to use 'subscripts' too) On 25 June 2010 13:16, Ben Wilkinson wrote: > I am trying to add labels equal to the value in a levelplot. I b

[R] Label Values in levelplot

2010-06-25 Thread Ben Wilkinson
I am trying to add labels equal to the value in a levelplot. I believe that panel may be the way to go but cannot understand the examples. In the following example: X,Y,Z A,M,100 A,M,200 B,N,150 B,N,225 I would like to label each of the rectangles 100,200,150 and 225 and colour according to the

[R] Label Values in levelplot

2010-06-24 Thread Ben Wilkinson
I am trying to add labels equal to the value in a levelplot. I believe that panel may be the way to go but cannot understand the examples. In the following example: X,Y,Z A,M,100 A,M,200 B,N,150 B,N,225 I would like to label each of the rectangles 100,200,150 and 225 and colour according to the