今天在跑monocle2,出图时报了个错
Fibroref5k <- setOrderingFilter(Fibroref5k, disp.genes)
p1 <- plot_ordering_genes(Fibroref5k)
p1
Error in grid.Call(C_stringMetric, as.graphicsAnnot(x$label)) :
X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 9 could not be loaded
尝试用ggsave保存,图片正常,但发现有个警告和上面的报错类似
ggsave("p1.png",p1)
Warning message:
X11 used font size 34 when 45 was requested
结果发现是打代码的时候不小心缩放了Rstudio窗口……把窗口变回正常大小就行了……