[R] levelplot

Bodo Ahrens Bodo.Ahrens at univie.ac.at
Fri Sep 12 08:51:24 CEST 2003


Dear helpers,

I have strange results with levelplot: The following lines of code produce a
figure with a strange gray horizontal line. Changing n to 9 the line vanishes
almost - it stays in the colorbar. Any ideas? The pixel geometry of the lower
half of the figure is wrong?

##############################
n<-8
xyz<-expand.grid(x=seq(1,n),y=seq(1,n))
z<-matrix(0,n,n)
z[,(n/2-1):(n/2+1)]<-1
xyz$z<-as.vector(t(z))

library("lattice")
levelplot(z~x+y,xyz)
################################

Versions of lattice and grid etc are actual.

Thank you,

Bodo


--
Dr. Bodo Ahrens
Institut fuer Meteorologie und Geophysik, Universitaet Wien
Althanstrasse 14, A-1090 Wien, Austria
Tel: +43-1-4277-51917, Fax: +43-1-4277-9519
E-mail: Bodo.Ahrens at univie.ac.at




More information about the R-help mailing list