报错
Error in grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto), :
Viewport has zero dimension(s)
原因:
1.画板没有拉大,拉大可解决。
2.输出pdf的宽和高设置太小,如下都是1时报错,改大可解决。
pdf(file = file.path(path,“1.1Proteins counts of all samples.pdf”),width=1, height=1)