[R] Label Values in levelplot

From: Ben Wilkinson <bjlwilkinson_at_gmail.com>
Date: Fri, 25 Jun 2010 18:16:18 -0600

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:


I would like to label each of the rectangles 100,200,150 and 225 and colour according to the value

The colouring is achieved by

levelplot(z ~ x *y , data) but then I get stuck with the labels

Thanks very much for your help


        [[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. Received on Sat 26 Jun 2010 - 00:21:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Jun 2010 - 00:30:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive