Re: [R] Saving plots to file

2009-08-10 Thread Zhiliang Ma
?postscript ?pdf On Mon, Aug 10, 2009 at 9:25 AM, Sean MacEachern wrote: > Appologies if this has been addressed before, but I can't seem to find it in > the help archives. > > I'm looking to do something like the following but it looks like save.plot > is deprecated. > > save.plot(plot(glm1$resid

Re: [R] Saving plots to file

2009-08-10 Thread Gabor Grothendieck
On Windows versions of R there is savePlot. Don't know if that exists on Mac too. On Mon, Aug 10, 2009 at 12:25 PM, Sean MacEachern wrote: > Appologies if this has been addressed before, but I can't seem to find it in > the help archives. > > I'm looking to do something like the following but it l

Re: [R] Saving plots to file

2009-08-10 Thread Sean MacEachern
Thank you Cedric. That was a nice straight forward example that works great. Cheers, Sean On 8/10/09 11:45 AM, "Cedrick Johnson" wrote: > Try this: > > png(file="Desktop/hist1.png") > plot(glm1$residuals,gain,main = "Hist of residuals and gain") > dev.off() > > -c > > Sean MacEachern wro

Re: [R] Saving plots to file

2009-08-10 Thread Cedrick Johnson
Try this: png(file="Desktop/hist1.png") plot(glm1$residuals,gain,main = "Hist of residuals and gain") dev.off() -c Sean MacEachern wrote: Appologies if this has been addressed before, but I can't seem to find it in the help archives. I'm looking to do something like the following but it look

[R] Saving plots to file

2009-08-10 Thread Sean MacEachern
Appologies if this has been addressed before, but I can't seem to find it in the help archives. I'm looking to do something like the following but it looks like save.plot is deprecated. save.plot(plot(glm1$residuals,gain,main = "Hist of residuals and gain"),file="Desktop/hist1.png") Thanks in a