[R] How to use filled.contour(x,y,z) data for levelplot(z)?
Edzer J. Pebesma
e.pebesma at geog.uu.nl
Mon Jan 9 17:03:42 CET 2006
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 helped by using package sp,
see also http://r-spatial.sourceforge.net/ and look
for the graph gallery, function spplot.
--
Edzer
More information about the R-help
mailing list