Re: [R] saving plots

2011-02-14 Thread Philipp Pagel
On Mon, Feb 14, 2011 at 12:59:13PM +0530, km wrote: > Hi all, > > Is there a way to save the currently displayed plot to an image format just > after we view it? > I think this would be more intuitive as a user if I wish to save it just > after I visualize the plot. > > I am aware that we need t

Re: [R] saving plots

2011-02-13 Thread km
Thanks! thats just what I was looking for! regards, KM On Mon, Feb 14, 2011 at 1:16 PM, Joel wrote: > > look at > > ?savePlot > > It will save the current plot you are viewing. > -- > View this message in context: > http://r.789695.n4.nabble.com/saving-plots-tp3304540p3304548.html > Sent from th

Re: [R] saving plots

2011-02-13 Thread Joel
look at ?savePlot It will save the current plot you are viewing. -- View this message in context: http://r.789695.n4.nabble.com/saving-plots-tp3304540p3304548.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mail

[R] saving plots

2011-02-13 Thread km
Hi all, Is there a way to save the currently displayed plot to an image format just after we view it? I think this would be more intuitive as a user if I wish to save it just after I visualize the plot. I am aware that we need to do some thing like this jpeg('somefilename.jpg') ... plot... comma

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

Re: [R] Saving plots as byte streams

2009-01-09 Thread Prof Brian Ripley
On Fri, 9 Jan 2009, richard.cot...@hsl.gov.uk wrote: Is it possible to save plots as byte streams? You mean bitmap plots? E.g. PDF plots are not even written sequentially. For example, if I want the bytes for a PNG plot, I could use #Write the plot to a PNG file png("test.png") plot(1:10

[R] Saving plots as byte streams

2009-01-09 Thread Richard . Cotton
Is it possible to save plots as byte streams? For example, if I want the bytes for a PNG plot, I could use #Write the plot to a PNG file png("test.png") plot(1:10) dev.off() #Read the bytes back in from the file plotbytes <- readBin("test.png", "raw", n=2000) Ideally, I'd like to avoid having