[R] problems with levelplot and contourplot
Tom Lenaerts
tlenaert at ulb.ac.be
Tue Oct 11 22:35:11 CEST 2005
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)));
-------------- next part --------------
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))
More information about the R-help
mailing list