문제

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?

도움이 되었습니까?

해결책

I'd close R, delete the blank pdf and then retry with:

pdf("mygraph.pdf")
plot(x)
dev.off()

Using putty and xming shouldn't effect anything. Or you could try saving it as another format (to check if its an issue with your R device).

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top