簡體   English   中英

如何在RStudio中從Viewer保存高分辨率.png?

[英]How to save high resolution .png from Viewer in RStudio?

是否有一個功能類似ggsaveggplots從在RStudio觀眾節省了高清晰度的圖片?

不確定這是否是您要尋找的,但是您可以直接使用可用的圖形設備,然后將繪圖寫入文件中,例如,如下所示(檢查?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()

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM