
下面介绍几种地图的玩法,是前段时间的相关总结,将就看吧
1.调用maps包
library(maps)
map("world", fill = TRUE, col = rainbow(200),
ylim = c(-60, 90), mar = c(0, 0, 0, 0))
title("the map of world ")

颜色辣👀
2.迁移图
library(REmap)
set.seed(125)
origin = rep("武汉",10)
destination = c('上海','广州','大连','南宁','南昌',
'拉萨','长春','包头','重庆','常州')
dat = data.frame(origin,destination)
out = remap(dat,title = "by梧桐",subtitle = "")
plot(out)

是个动态图,具体位置可以跳着参数进行设置
文章转载自R语言数据分析与建模,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




