我试图绘制火山图,但我得到了这样的错误:
Error in grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto), :
Viewport has zero dimension(s)我从来没有遇到过这样的问题,过去的代码工作得很好。根据标签,这基本上是由细胞组成的火山图。我想看看两组的区别。
p=c()
for (i in 1:nrow(scores.batch)){
p[i] = wilcox.test(scores.batch[i,totaldata$Response=='Response'],scores.batch[i,totaldata$Response=='NoResponse'])$p.value
}
p.adj = p.adjust(p,method='fdr')
lfc = log2(rowMeans(scores.batch[,totaldata$Response=='Response'])/rowMeans(scores.batch[,totaldata$Response=='NoResponse']))
set.seed(42)
DF.2 = data.frame(lfc, p, labels= rownames(scores.batch))
EnhancedVolcano(toptable = DF.2, lab=DF.2$labels, drawConnectors = TRUE,
x='lfc',y='p',pCutoff = 0.5, FCcutoff = 0.25, ylim = c(0,7.5), xlim = c(-1.5,1.5))是什么导致的?我试着重新启动R,但没有帮助。
发布于 2022-10-03 12:22:02
当查看器窗口太小时会发生此错误--尝试增加其大小以停止错误。
https://stackoverflow.com/questions/73935357
复制相似问题