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