【发布时间】:2020-10-14 07:30:21
【问题描述】:
早上、下午或晚上。
我有以下位置数据(从'Count of sampling points within a grid cell'调整)
# Demo data
set.seed(123)
#
lat <- runif(1000, 46.5, 48.5)
lon <- runif(1000, 13,16)
#
pos <- data.frame(lon, lat)
使用以下内容:
ggplot(pos, aes(x = lon, y=lat)) +
geom_bin2d(bins = 25) +
stat_bin_2d(aes(label=stat(count)), bins = 25, position="identity") +
scale_fill_gradient(low = "white", high = "red")+
theme_void()
给予:
很棒,但是,
我想在传单中做同样的事情,但似乎找不到一个简单的解决方案。实际上,我有超过 5,000,000 个数据点。
在单元格上运行鼠标或使用传单弹出功能时,将显示单元格的数据点数。
【问题讨论】: