I am running several codes using our server and create image using R using putty (linux server) in Xming view .I wonder how can I save my images as pdf?
问问题
1375 次
1 回答
1
我会关闭 R,删除空白 pdf,然后重试:
pdf("mygraph.pdf")
plot(x)
dev.off()
使用 putty 和 xming 应该不会产生任何影响。或者您可以尝试将其保存为另一种格式(以检查您的 R 设备是否存在问题)。
pdf("mygraph.pdf") #pdf file
win.metafile("mygraph.wmf") #windows metafile
png("mygraph.png") #png file
jpeg("mygraph.jpg") #jpeg file
bmp("mygraph.bmp") #bmp file
postscript("mygraph.ps") #postscript file
于 2014-03-18T13:56:47.293 回答