adding land boundary to a filled.contour plot

孤者浪人 提交于 2019-12-24 15:14:16

问题


I'd like to add the boundary lines for Scotland into a filledContour plot I have of a raster file. so my code currently looks like:

filledContour(neap_hu3, levels=seq(-1,8,0.25), col=rgb.palette(36), plot.title = title(xlab="Longitude", ylab="Latitude"), plot.axes={ axis(1); axis(2); contour(neap_hu3, add=T )} )

where neap_hu3 is my raster file.

I've tried adding map(add=TRUE) but that didn't work. also tried plotting a shapefile of the boundary after the filledContour plot but that didn't work.

anyone has any suggestions? will be greatly appreciated :)

来源:https://stackoverflow.com/questions/17722403/adding-land-boundary-to-a-filled-contour-plot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!