【发布时间】:2019-11-21 14:50:13
【问题描述】:
我正在尝试使用 RStudio 创建一个 300 dpi 的 ggplot2 图。我试过命令
tiff("test.tiff", units="in", width=5, height=5, res=300)
ggplot(Rrib, aes(YEAR, CLUSTER)) + geom_tile(aes(fill = SAMPLE_TYPE), colour="black", size = 1.3)+ scale_fill_manual(values = c("BOTH" = "red2", "ENV" = "forestgreen", "AFP" = "orange", "NONE" = "white"))
dev.off()
但是,R studio 没有在绘图区域显示任何输出。 非常感谢您的帮助
【问题讨论】:
-
myplot <- ggplot(...)然后ggsave(myplot, "test.tiff", width = 5, height = 5, res = 300)