2
我想添加标签geom_hex,这产生了两个问题:GGPLOT2:geom_hex标签
- 如何我得到他们的坐标;
- 我该如何提取他们的计数值?
小例子:
pipeline <- read.csv(url('http://dl.dropboxusercontent.com/u/7446674/pipeline.csv'),sep="\t",header=T)
pipeline <- pipeline[pipeline$Units>0,]
ggplot(pipeline,aes(x=Longitude,y=Latitude))+
#stat_density2d(n=25,aes(fill=..level..), geom="polygon") +
geom_hex(bins=12)+
coord_equal(ratio = 1/1)+
theme_bw()+
ggtitle('San Francisco Development Pipeline\nQ2 2013')
(此外,在geom_hex,如果有谁知道,如果晕死一直没有实现我会有兴趣知道,太)
的作品就像一个魅力! – ako
计数很好,除非我可以用stat_binhex来衡量观察结果,但我认为这还没有实现。 – ako