[R] levelplot in lattice

From: <adschai_at_optonline.net>
Date: Wed, 27 Jun 2007 23:51:19 +0000 (GMT)


I'm new to lattice. So please kindly be patient with me. I'm trying to arrange groups of levelplots into 3 rows as follows:

Row1: Probabilities as functions of x and y, and conditioned on an event factor vector factor("a","b","c")

Row2: Number of days as functions of x and y, and conditioned on, again the same event factor("a","b","c")

Row2: Costs as functions of x and y, and conditioned on, again the same event factor("a","b","c")

I tried the following:


levelplot(z ~ x*y|events, probDat);
levelplot(z ~ x*y|events, daysDat);
levelplot(z ~ x*y|events, costDat);

It does not do what I want. It replace the previous plot every time I call a new levelplot. I can't put them into the same matrix and plot them all at once because the scale of each data type is very different, i.e.g probability=c(0,1), days=c(0,10), etc. I'm wondering if you could suggest a way to solve this problem.

Also, if I would like to put in mathematical notation on the top strip of the plot instead of using text in my events factor vector, what can I do?

Thank you so much in advance.

R-help_at_stat.math.ethz.ch 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 Thu 28 Jun 2007 - 00:00:05 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 Thu 28 Jun 2007 - 01:34:11 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.