报错:
barplot(gene_GO_all,showCategory = 20,title = “GO enrich result(all)”)
Error in ans[ypos] <- rep(yes, length.out = len)[ypos] : 更换参数长度为零
此外: Warning message:
In rep(yes, length.out = len) : ‘x’ is NULL so the result will be NULL
在画图的时候,遇到这样一条报错。
解决:
参考文章:
报错:Error in ans[ypos] <- rep(yes, length.out = len)[ypos] : replacement has length zero
原因是:阈值设的比较小,没有达到条件的,所以数据是空的,NULL,也就没法画图,所以报错。个人理解是这样。
rep那句话的意思没懂,有没有大佬可以指点一下呜呜。
应该是绘图里头有关的问题。
好啦,这个问题记录到这。