北京= c(116.4167, 39.91667)
City2=read.table('20City')
建立链接 Num=0 Result=data.frame() for(i in c(1:nrow(City2))){ Num=Num+1 tmp = Connet(北京,c(City2[i,][[2]],City2[i,][[3]]),Space=pi/10) tmp$Group=Num Result = rbind(Result,tmp) }
经纬线() + geom_polygon(data=world, aes(x = long, y = lat, group = group), fill = "#00518E",color = "white",size=1.2)+ coord_map("ortho", orientation = c(30, 100, 0)) +theme_map()+ geom_polygon(data=world, aes(x = long, y = lat, group = group), fill = "#00518E",color = "#317DA4",alpha=0.25,size=0.5,linetype=6) + geom_point(data=Result,aes(x=X,y=Y))
|