全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1170 0
2016-08-30
ggplot(myepidat) + geom_map(aes(map_id = id, fill = 各地药费用), color = "white", map = mymapd) +
+     geom_point(data = temp,aes(x = long, y = lat,fill = NULL),
+                colour = rgb(red = 165, green = 165, blue = 165, max = 255)) +
+     geom_dl(data = temp,aes(x = long, y = lat,label = NAME),
+             list('last.points',cex = 0.7, hjust = 1))+#设置省会标签,让省会标签随机移动一点距离以免过分重叠
+     scale_fill_gradient(name="",
+                         high = rgb(red = 254, green = 67, blue = 101, max = 255),
+                         low = rgb(red = 162, green = 162, blue = 145, max = 255),
+                         breaks = c(0, 103, 153, 153, 202, 317, 581)) +
+     expand_limits(x = c(73, 136), y = c(6, 54)) + coord_map()+
+     theme_opts +
+     theme(legend.text=element_text(size=10))
Error in ggplot2::layer(data = data, mapping = mapping, geom = GeomDl,  :
  must specify method= argument

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群