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