plotIndiv v5.1.1

Issue #32 wontfix
Florian Rohart created an issue

We should probably add checks for some input parameters to avoid dealing with NA in group (for instance, maybe some other parameters)

Because if group=c(NA,NA,...,NA), no error message but the code crashes. Example from Jess:

plotIndiv(res,group=as.numeric(pheno_sc$Type)) Error in [<-(*tmp*, classification == groups[j], j, value = 1) : subscript out of bounds In addition: Warning message: In plotIndiv(res, group = as.numeric(pheno_sc$Type)) : NAs introduced by coercion

as.numeric(pheno_sc$Type)[1:10] [1] NA NA NA NA NA NA NA NA NA NA Warning message: NAs introduced by coercion

Comments (2)

  1. Log in to comment