[英]how to control the width and length of ggplot with increased resolution using ggsave
创建分辨率为 300 dpi 的 ggplot 后,面临的主要问题是图形的尺寸。 使用的命令是
p <- 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"))
ggsave('C:/Users/Nido/Desktop/test.tiff', p, device = "tiff", dpi = 300,
width=12, height=16, unit = "in")
使用上述命令,plot 区域中没有 output。
并通过更改以下命令部分的 position 错误是“无法识别“单元”
width=12, height=16, unit = "in"
如何调整图形的长度和宽度。 您的帮助将不胜感激
尝试以复数形式使用单位 - 所以units = "in"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.