Получение ошибки с googleVis для моих данных - PullRequest
0 голосов
/ 05 ноября 2018

Я пытаюсь построить данные с помощью пакета googleVis, но получаю следующее сообщение об ошибке:

Error in gvisCheckMotionChartData(data, my.options) : 
  The data must have rows with unique combinations of idvar and timevar.
Your data has 3079 rows, but idvar and timevar only define 8 unique rows.

head(mydata)

  created             lic       plan   category       type       count Month Year        Week
1 2018-07-01            1         3    Success        REC           1  July 2018 July-WEEK-1
2 2018-07-01            1         3    Success        IMP           1  July 2018 July-WEEK-1
3 2018-07-01            1         3    Com            IMP           1  July 2018 July-WEEK-1
4 2018-07-01            1         4    Mrk            REC           2  July 2018 July-WEEK-1
5 2018-07-01            1         4    Mrk            IMP           1  July 2018 July-WEEK-1
6 2018-07-01            1         4    Mrk            REC           1  July 2018 July-WEEK-1

помогите мне найти решение, и я хочу построить график, как показано ниже:

library(googleVis)
data("Fruits")
mychart<-gvisMotionChart(Fruits,idvar = "Fruit","Year")
plot(mychart)
...