R有广泛的应用,下面我们来用R画出各个国家的地图
方法/步骤
画出中国地图语言如下: library("maps")library("mapdata")map("china",fill=TRUE,col=rainbow(200),mar=c(0,0,0,0,))title("the map of china")
方法/步骤2
1
用R画出日本地图,语言如下:library("maps")library("mapdata")map("japan",fill=TRUE,col=rainbow(200),mar=c(0,0,0,0,))title("the map of japan")
2
用R画出世界地图,语言如下:library("maps")library("mapdata")map("world",fill=TRUE,col=rainbow(200),mar=c(0,0,0,0,))title("the map of world")
注意事项
R和RSTUDIO的使用之前应该下载有关的packages
上一篇:法语入门如何自学法语
下一篇:怎样看懂地图上自己的定位