Skip to content
Prev 201364 / 398502 Next

plot filled.contour over continent map

You just have to RTFM!

?filled.contour tells you you cannot add points (or lines) to a finished plot, and tells 
you how to do what you want.

So, based on your most recent offline message, try:

filled.contour(x, y, mslp, zlim = c(1000,1020),
  color.palette = colorRampPalette(c("blue", "lightblue", "yellow", "orange", "red")),
  xlab = "Longitude (?)", ylab = "Latitude (?)",
  xlim = c(-5, 40), ylim = c(35, 70), nlevels = 25,
  plot.axes = {axis(1); axis(2);			### this is the key part
    map('worldHires', xlim = c(-5, 40), ylim = c(35, 70), add = T, col = "darkgrey")}
)

Ray Brownrigg
On Fri, 20 Nov 2009, Matthias Demuzere wrote: