[R] Can data.frame be saved as image?

2012-12-21 Thread Katherine Gobin
Dear R forum I have one stupid question, but I have no other solution to it in sight? Suppose some R process creates graphs etc alongwith main output as data.frame e.g output1 = data.frame(bands = c(A, B, C), results = c(74, 108,  65)) I normally save this output as some csv file. But I

Re: [R] Can data.frame be saved as image?

2012-12-21 Thread jim holtman
do you want to save the dataframe used in the plot and then the plot itself? If so consider using 'lattice' or 'ggplot2' which create an object for print and this would allow you to use 'save' to save both objects in a file. If you want to generate the 'png' file, the you would have to 'save'

Re: [R] Can data.frame be saved as image?

2012-12-21 Thread Katherine Gobin
the solution and somehow I felt it's a stupid thing to do so. I will remember it next time. Regards Katherine --- On Fri, 21/12/12, jim holtman jholt...@gmail.com wrote: From: jim holtman jholt...@gmail.com Subject: Re: [R] Can data.frame be saved as image? To: Katherine Gobin katherine_go

Re: [R] Can data.frame be saved as image?

2012-12-21 Thread arun
, December 21, 2012 8:59 AM Subject: [R] Can data.frame be saved as image? Dear R forum I have one stupid question, but I have no other solution to it in sight? Suppose some R process creates graphs etc alongwith main output as data.frame e.g output1 = data.frame(bands = c(A, B, C), results = c(74