Skip to content
Prev 302930 / 398503 Next

How to overlay a global map on a filled contour?

On 12-08-09 6:14 PM, Cable, Sam B Civ USAF AFMC AFRL/RVBXI wrote:
Your code doesn't quite make sense.  The map function doesn't want to 
know the x and y values; it just wants to know the region to plot, which 
should have been set by the data.  So, assuming that 
filled.contour(lons, lats, glb.data) produces something sensible, you'd 
get what you want with

filled.contour(lons, lats, glb.data, plot.axes={axis(1); axis(2); 
map(add=TRUE)})

Duncan Murdoch