如何在基礎 R 中更改繪圖的解析度?
在基礎 R 中,我們可以將一個繪圖儲存為 png,並在同一階段傳遞解析度。此過程是使用 res 引數建立具有解析度的 png 影像,然後建立繪圖並使用 dev.off() 建立檔案。檢視以下示例以瞭解其工作原理。
示例 1
> png(file="example1.png",res=100) > plot(1:10) > dev.off()
輸出
示例 2
> png(file="example2.png",res=200) > plot(1:10) > dev.off()
輸出
廣告