Open seqyuan opened 3 months ago
Sorry for being late replying. It may be a bug caused by the incompatibility between graphics::xspline
and ggplot system. Some other packages also met similar problems, such as hrbrmstr/ggalt#70.
There are two ways to avoid this:
save graph with R basic way
pdf("aaa.pdf", w=5, h=5)
p
dev.off()
run dev.off()
before ggsave
p
dev.off()
ggsave("aaa.pdf", w=5, h=5)
These both work for me, hope these can solve your problem.
the aaa.pdf is blank