JohnsonHsieh / iNEXT

R package for interpolation and extrapolation
https://JohnsonHsieh.github.com/iNEXT
57 stars 26 forks source link

ggiNEXT error with incidence_raw data #37

Open miriamgrace opened 6 years ago

miriamgrace commented 6 years ago

Hi, I'm trying to plot iNEXT R/E curves with ggiNEXT. The iNEXT computation seems to work but trying to plot with ggiNEXT leads to the error:

Error in rbind(deparse.level, ...) : numbers of columns of arguments do not match

  1. stop("numbers of columns of arguments do not match")
  2. rbind(deparse.level, ...)
  3. rbind(87 = structure(list(t = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, ...
  4. do.call("rbind", z)
  5. data.frame(do.call("rbind", z), site = rep(names(z), sapply(z, nrow)))
  6. fortify.iNEXT(x, type = type)
  7. fortify(x, type = type)
  8. ggiNEXT.iNEXT(data, type = 1, facet.var = "site")
  9. ggiNEXT(data, type = 1, facet.var = "site")

I call iNEXT and ggiNEXT as: data_iNEXT <- iNEXT(data, q= 0, datatype="incidence_raw",size=c(1:76), nboot = 50) ggiNEXT(data_iNEXT, type=1, facet.var="site")

Just wondering if anyone has experienced something similar and solved it? I'm new to iNEXT so sorry if this is a silly question. Thanks a lot.

ghost commented 4 years ago

Hello, I'm having the same exact problem. Any idea what this error message means in gginext context?