0

我有链接交通速度数据集。

我想用时间轴和速度值绘制道路网络(链接)。

这是数据集,我想做的是如下图

linkID <- c(1,2,3,4,5,1,2,3,4,5,1,2,3,4,5)

start_x <- c(101,102,103,104,103,101,102,103,104,103,101,102,103,104,103)

start_y <- c(203,201,201,202,204,203,201,201,202,204,203,201,201,202,204)

end_x <- c(102,103,104,103,101,102,103,104,103,101,102,103,104,103,101)

end_y <- c(201,201,202,204,203,201,201,202,204,203,201,201,202,204,203)

time <- c(0,0,0,0,0,5,5,5,5,5,10,10,10,10,10)

speed <- c(50,50,50,50,50,100,100,100,100,100,50,50,50,50,50)
    linkID  start_x     start_y    end_x    end_y   time    speed
      1      101         203         102     201      0      50
      2      102         201         103     201      0      50
      3      103         201         104     202      0      50
      4      104         202         103     204      0      50
      5      103         204         101     203      0      50
      1      101         203         102     201      5      100
      2      102         201         103     201      5      100
      3      103         201         104     202      5      100
      4      104         202         103     204      5      100
      5      103         204         101     203      5      100
      1      101         203         102     201      10     50
      2      102         201         103     201      10     50
      3      103         201         104     202      10     50
      4      104         202         103     204      10     50
      5      103         204         101     203      10     50

在此处输入图像描述

4

0 回答 0