有没有类似于ggplots的ggsave的功能,可以在RStudio中保存来自查看器的高清图片?
发布于 2018-06-30 05:58:20
不确定这是否是您正在寻找的,但您可以直接使用可用的图形设备并将绘图写入文件,例如,如下所示(有关其他文件格式,请查看?device ):
# specify the device / file format (and start device)
png(file = "myplot.png")
plot(1:2, 1:2, type = "l")
#turn off the device
dev.off()https://stackoverflow.com/questions/51109825
复制相似问题