在Rstudio上绘制json文件中的数据

时间:2017-03-20 18:19:26

标签: json r

我有一个json文件:

{
"challenge0" : [
{
  "X" : "-15.5820999145508",
  "time" : "1489079614.50596",
  "Speed" : "Optional(__C.CGVector(dx: 0.0, dy: 0.0))",
  "Y" : "-10.6790924072266"
},
{
  "X" : "-15.5820999145508",
  "time" : "1489079615.39075",
  "Speed" : "Optional(__C.CGVector(dx: 3.3732881377091e-08, dy: 5.58793544769287e-07))",
  "Y" : "-10.6790924072266"
},
{
  "X" : "-15.5917558670044",
  "time" : "1489079615.40559",
  "Speed" : "Optional(__C.CGVector(dx: -0.772350311279297, dy: 2.60296104670488e-07))",
  "Y" : "-10.6790924072266"
},
{
  "X" : "-15.6142683029175",
  "time" : "1489079615.42163",
  "Speed" : "Optional(__C.CGVector(dx: -1.54341471195221, dy: 2.79396772384644e-07))",
  "Y" : "-10.6790924072266"
},
"challenge1Time" : "2.24",

"challenge4Time" : "9.98",

 "TotalTime" : 24.17413234710693,

"challenge0Time" : "1.52"

如何在一个情节中绘制挑战时代?

我的意思是,我想要一个包含2个维度的图表:

x: Challenge times
y: Time

我正在使用Rstudio。

0 个答案:

没有答案