[R] Treemap error - missing value where TRUE/FALSE needed

Alicia Pérez-Porro alicia.r.perezporro at gmail.com
Fri Aug 7 18:34:39 CEST 2015


Dear R users,

I am trying to generate a treemap using the package Treemap on R and I'm
encountering the subsequent error:


*Error in if (rec[3] < rec[4]) { : missing value where TRUE/FALSE needed*

I did traceback() and I got:

*5: pivotSize(numeric(0), c(NA_real_, NA_real_, NA_real_, NA_real_*
*   ))*
*4: do.call(algorithm, list(value, rec))*
*3: subTM(datlist[datlist$l == 1])*
*2: tmGenerateRect(datlist, vps, indexList, algorithm)*
*1: treemap(stuff, index = c("representative", "description"), vSize =
"value", *
*       type = "categorical", vColor = "representative", title = "REVIGO
Gene Ontology treemap", *
*       inflate.labels = FALSE, lowerbound.cex.labels = 0, bg.labels =
"#CCCCCCAA", *
*       position.legend = "none")*

My script is attached.

I have no idea about how to fix it. Can anyone please help me?
Thanks in advance,

Alicia


More information about the R-help mailing list