나는 내가 그린지도 위에 해안선과 국경을 오버레이하려고합니다.어떻게 R을 사용하여 worldHires를 해안선을 정확하게 플롯 할 수 있습니까?
난 worldHires 기능을 간단하게 사용하려고하지만 내지도가 올바르게 조정되지 않았습니다. 나는 https://www.esrl.noaa.gov/psd/data/gridded/data.UDel_AirT_Precip.html에서 내 데이터를 다운로드하고 파일 이름은 precip.mon.total.v401입니다
내가 (R에 처음 몇 읽기 데이터 라인과 변수 제외) 내지도 플롯 할 때이 내 코드입니다 :
를>image.plot(lon,lat,precip[,ncol(precip):1,8],
main="Precipitation (August, 2001)",
xlab=expression(paste("Longitude(",degree,"E)")),
ylab=expression(paste("Latitude(",degree,"N)")),
zlim=c(0,15),xlim = c(min(lon),max(lon)),
ylim = c(min(lat),max(lat)),cex=0.5)
> map('world2Hires', fill=FALSE, add=T)
world2Hires의 경계 레이어는 Latitude의 경우 -90 ~ 90, 경도의 경우 0 ~ 360의 비율로 매우 작습니다.
내 데이터의 범위는 Latitude -180 ~ 180, 경도 0 ~ 720입니다. 그렇다면 world2Hires를 데이터와 일치하도록 확장하려면 어떻게해야합니까? 아니면 불가능한가요? See image in link