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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

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 helped by using package sp,
see also http://r-spatial.sourceforge.net/ and look
for the graph gallery, function spplot.
--
Edzer

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html