Moving projected map on filled.contour plot

流过昼夜 提交于 2019-12-21 21:37:33

问题


here is the code that produces the plot below:

filled.contour(x,y,z, col=colors2, levels=breakpoints, plot.axes={axis(1); axis(2); map(add=TRUE, interior=FALSE)} )

A sample can be created using:

z=matrix(rnorm(7008),nrow=96)
x=seq(-176.25,180, by=3.75)
y=seq(-90,90, by=2.5)
filled.contour(x,y,z, plot.axes={axis(1); axis(2); map(add=TRUE, interior=FALSE)} )

However I can't seem to figure out how to crop/move the projected world map (from the 'maps' package) 3.75 degrees on/to the right side so it fits properly. This is equivalent to adding one more row onto the base of my original data matrix (z), which I don't want to do as it gives an empty column at one end. I have tried 'orientation' but can't get it to work.

I'm sure this is simple! Many help in advance

来源:https://stackoverflow.com/questions/23936774/moving-projected-map-on-filled-contour-plot

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