[R] How to use filled.contour(x,y,z) data for levelplot(z)?

2006-01-09 Thread Jan Verbesselt
Dear all, We used the following function to create a spatial plot of a raster image: filled.contour(xx,yy,zz, color = terrain.colors, nlevels=10, main=naamjaar, plot.axes = { contour(Xcoord/1000,Ycoord/1000,lim.data, nlevels = 4, col=4,drawlabels = T, axes = FALSE, frame.plot = FFALSE, add =

[R] How to use filled.contour(x,y,z) data for levelplot(z)?

2006-01-09 Thread Edzer J. Pebesma
Jan, libary(lattice) rownames(zz) - xx colnames(zz) - yy levelplot(zz) will not work -- levelplot needs a data frame with zz, xx and yy values next to each other, so read about data.frame(), rep() and as.vector(zz); you will need the each= argument for one of xx or yy. Sounds like you'd be