[R] Label Values in levelplot

From: Ben Wilkinson <bjlwilkinson_at_gmail.com>
Date: Thu, 24 Jun 2010 23:16:30 -0400

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


        [[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 Fri 25 Jun 2010 - 03:18:42 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 Sun 27 Jun 2010 - 23:50:42 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