remapB绘制迁徙图

destination<c("shanghai","guangzhou","南","dalian","xian","chengdu","changchun","taiyuan","nanyang","zhengzhou")  #终点
origin<- rep("nanyang",length(destination))  #起点
map_data<- data.frame(origin,destination)  #合成数据框格式的作图数据
map_out<-remapB(zoom=5, #参数5绘制省级国家地图
                color="Blue",
                title="我是主标题",
                subtitle="我是副标题",
                markLineData=map_data,
                markPointData=destination,
                markLineTheme=markLineControl(),
                markPointTheme=markPointControl(symbol = 'emptyCircle',
                                                symbolSize =0,
                                                effect = F,
                                                effectType = 'bounce',
                                                color = "Random"))


plot(map_out)
# 参数一:center为地图中心,经纬度格式;
# 参数二:zoom为缩放设置,默认为5,代表全国地图,增大至10可放大至地市
# 参数三:color为地图颜色,可选有"Bright", "Blue", "light", "dark", "redalert", "googlelite", "grassgreen", "midnight", "pink", "darkgreen", "bluish", "grayscale", "hardedge"
# 参数四:title为地图主标题
# 参数五:subtitle为地图副标题参
#数六:markLineData为绘制线条需要的数据,包括起点和终点两列
# 参数七:markPointDate为绘制点需要的数据,仅终点一列
# 参数八:markLineTheme为线条主题设置,通过markLineControl( )函数设置
# 参数九:markPointTheme为点主题设置,通过markPointControl( )函数设置

# 参数十:geoData为点、线绘制的地理位置数据存储,可以只是输入经纬度数据,也可通过get_geo_position(‘地点’)获取






  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值