Re: [R] problems with levelplot and contourplot

From: Tom Lenaerts <tlenaert_at_ulb.ac.be>
Date: Wed 12 Oct 2005 - 06:35:11 EST

Dear Sundar

Thanks a lot, this resolves the problem of the warning messages.

Yet it does not produce the plot: I only get a blank Quartz panel (i'm using R on Mac OS X 1.3). I attached the file and the corrected code.

Maybe it is a problem of the data?

library(lattice);
mydata <- read.table("avgee.dat");
mymat <- as.matrix(mydata);
mymat <-t(mymat)
vals<-as.vector(mymat);
conc<-c(0.0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5); a<- c(0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5,5.0, 7.5,10, 25, 50, 75, 100);
grid<-expand.grid(x=conc, y=a);
levelplot(vals ~ x * y, grid, region=TRUE, cuts=20,scale = list(y = list(log = TRUE)));

Thanks in advance

Tom




Tom Lenaerts (tlenaert at ulb.ac.be) http://www.tomlenaerts.tk/
Postdoc Researcher @ IRIDIA-Universite Libre de Bruxelles-Belgium Guest Professor @ DINF-Vrije Uiversiteit Brussel-Belgium On 11 Oct 2005, at 22:26, Sundar Dorai-Raj wrote:

> scale = list(y = list(log = TRUE))



R-help@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 Received on Wed Oct 12 06:38:54 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:41:20 EST