Re: [R] Saving R Graph to a file

2012-11-04 Thread R. Michael Weylandt
On Sun, Nov 4, 2012 at 1:18 PM, frespider wrote: > > Hi guys, > > I really appreciated all your responds, I made mistake on my example below > hwere I wrote device.off() where it should be dev.off(). > > I read all the help documnet for odf png and postscript before I posted my > question but it

Re: [R] Saving R Graph to a file

2012-11-04 Thread frespider
Hi guys, I really appreciated all your responds, I made mistake on my example below hwere I wrote device.off() where it should be dev.off(). I read all the help documnet for odf png and postscript before I posted my question but it didn't help. Can some one please code an example? Thanks

Re: [R] Saving R Graph to a file

2012-11-04 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
y, November 04, 2012 5:32 AM To: frespider Cc: r-help@r-project.org Subject: Re: [R] Saving R Graph to a file Some hints: For pdf(), height and width are in inches, not pixels. dev.off() is necessary after drawing the image for pdf(). The name for the file argument (file="c:/figure.xxx")

Re: [R] Saving R Graph to a file

2012-11-04 Thread Robert Baer
On 11/4/2012 4:32 AM, Robert Baer wrote: Some hints: For pdf(), height and width are in inches, not pixels. dev.off() is necessary after drawing the image for pdf(). The name for the file argument (file="c:/figure.xxx") is file not filename hist(CO2[,5]) is more interesting And yes, ?pdf ?p

Re: [R] Saving R Graph to a file

2012-11-04 Thread Robert Baer
Some hints: For pdf(), height and width are in inches, not pixels. dev.off() is necessary after drawing the image for pdf(). The name for the file argument (file="c:/figure.xxx") is file not filename hist(CO2[,5]) is more interesting And yes, ?pdf ?postscript ?ping On 11/3/2012 11:16 PM, fr

Re: [R] Saving R Graph to a file

2012-11-04 Thread John
On Sat, 3 Nov 2012 21:16:49 -0700 (PDT) frespider wrote: You're leaving out some critical information like the error messages, if any, you receive. That said, your example won't work properly because it is not properly coded. FI'm sure it gets tiresome being told to read the manual, but that is

Re: [R] Saving R Graph to a file

2012-11-04 Thread R. Michael Weylandt
On Sun, Nov 4, 2012 at 4:16 AM, frespider wrote: > Hi > > I am not sure why I can't get my plot saved to a file as .ps, I searched > online and I found that I have to use something is called postscript,png or > pdf function which I did but still not working. > > Actually what I have is a matrix wi

[R] Saving R Graph to a file

2012-11-04 Thread frespider
Hi I am not sure why I can't get my plot saved to a file as .ps, I searched online and I found that I have to use something is called postscript,png or pdf function which I did but still not working. Actually what I have is a matrix with almost 300-400 columns. I need to create a histogram and bo