Ruby on rails - ошибка при установке пакета

В пакете статистики есть функция stepfun. Используя этот метод, вы можете использовать метод plot для этого класса объектов:

sdf <- split(df, individual)

plot(1, 1, type = "n", xlim = c(0, max(events)), ylim = c(0, max(table(individual))),
  ylab = "step", xlab = "time")

sfun <- lapply(sdf, function(x){
    sf <- stepfun(sort(x$events), seq_len(nrow(x) + 1) - 1)
    plot(sf, add = TRUE, col = unique(x$individual), do.points = FALSE)
})

enter image description here [/g0]

13
задан Community 23 May 2017 в 12:25
поделиться