【发布时间】:2018-12-18 12:47:58
【问题描述】:
有一个曼哈顿图,尝试使用 ggsave 保存它:
library(qqman)
MH <- manhattan(gwasResults2, chr="CHR", bp="BP", snp="SNP", p="P",
col = c("chartreuse2", "darkorange1", "gold1"),ylim=c(0,-log10(1e-06)), chrlabs = NULL,
suggestiveline = -log10(1e-03), genomewideline = -log10(1e-05),
highlight = NULL, logp = TRUE, annotatePval = NULL,
annotateTop = TRUE, main='DWStem') + theme_bw() + theme(panel.background = element_rect(fill = "transparent",colour = NA),
plot.background = element_rect(fill = "transparent",colour = NA))
ggsave("DWSte.png",MH, bg = "transparent")
文件已生成,但完全空白,我的意思是情节没有出现。
有什么想法吗!?
谢谢:)
【问题讨论】:
-
不喜欢
ggmanhattan?
标签: r ggplot2 themes bioinformatics genetics