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?
Asked
Active
Viewed 1,571 times
1 Answers
1
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

imouellette81
- 234
- 2
- 5
-
Also are you sure you have a pdf reader on the remote machine? Not sure how xming will react if you attempt to open a pdf and lack a reader. Might just populate a blank window and not a blank document – imouellette81 Mar 18 '14 at 15:48