我创建了一个带有传单的热图,我想将其导出为具有以下尺寸的图像(.png):
这张图片最终会被粘贴到word文档中。我知道可以选择调整纵横比,但不确定是否有替代解决方案。
# Creating a plot x=rnorm(20) plot(x) # saving plot png(file="saving_plot1.png", width=5, height=17.5, units="in", res=100) hist(x, col="Black") dev.off()