Displaying 1 result from an estimated 1 matches for "interpgrid".
Did you mean:
intergrid
2007 Jan 29
1
overlay xyplot on contourplot in lattice in R
...9;example'')
xyplot(example$xx, example$yy)
How can I do it?
It seems I could do it with the panel.contourplot and panel.xyplot options, but
until now I haven't suceeded. I found this command that maybe could help me :
# contourplot
contourplot(elev ~ longitude * latitude, data = interpgrid,
panel = function(x, y, subscripts, ...) {
panel.contourplot(x, y, subscripts, ...)
panel.xyplot(ortann$longitude, ortann$latitude)
} )
however, doesn't seem to work out, and I do not know what should I write for
subscripts. I do not understand the explanation in R.
Is anyon...