【发布时间】:2021-07-14 21:31:13
【问题描述】:
以下是伦敦的自行车租赁数据。每个点代表一个自行车租赁点。
我使用st_make_grid() 创建了一个网格。现在我想 -
-
绘制网格每个单元格中自行车租赁点数量的热图
-
绘制网格每个单元格中总 nbikes 的热图 (nbikes - 当前停放的自行车数量)
library(spData)
library(sf)
# cycle hire data of london
# Each observaion represent a cycle hire point in London.
hire_sf <- spData::cycle_hire
head(hire_sf)
# create grid
grid_area <- st_make_grid(hire_sf)
# 1. plot heatmap of number of cycle hire point in each cell
# 2. plot heatmap of total nbikes in each cell
# (nbikes - The number of bikes currently parked)
【问题讨论】: