linux系統中使用R的Cairo繪制png格式圖片


 

1、當前路徑文件

> dir() [1] "a.txt"

 

2、加載包,繪圖測試

> library(Cairo) > Cairo.capabilities()  png jpeg tiff pdf svg ps x11 win raster TRUE FALSE FALSE TRUE TRUE TRUE TRUE FALSE TRUE > CairoPNG(file="test.png",width=1000,height=500) > plot(1:10) > dev.off() null device 1
> dir() [1] "a.txt"    "test.png"

 

參考: https://blog.csdn.net/wa2003/article/details/46310811/

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM