Re: [R] capturing a figure to PDF or Image

2011-09-06 Thread Eran Eidinger
Thank you. On Sep 6, 2011 4:45 PM, "Sarah Goslee" wrote: > Eran, > >> On Tue, Sep 6, 2011 at 8:53 AM, Eran Eidinger wrote: >>> >>> Thank you Sarah and David, >>> I only used a simple plot, and remembered to dev.off(). >>> attached is the session: >>> >>> > plot(c(1,2,3),c(3,2,4)) >>> > jpeg("test

Re: [R] capturing a figure to PDF or Image

2011-09-06 Thread Sarah Goslee
Eran, > On Tue, Sep 6, 2011 at 8:53 AM, Eran Eidinger wrote: >> >> Thank you Sarah and David, >> I only used a simple plot, and remembered to dev.off(). >> attached is the session: >> >> > plot(c(1,2,3),c(3,2,4)) >> > jpeg("test.jpg") >> > dev.off() So you plotted something to your default devic

Re: [R] capturing a figure to PDF or Image

2011-09-06 Thread Berend Hasselman
eranid wrote: > > Thank you Sarah and David, > > I only used a simple plot, and remembered to dev.off(). > attached is the session: > >> plot(c(1,2,3),c(3,2,4))> jpeg("test.jpg")> dev.off()RStudioGD > 2 > sessionInfo()R version 2.13.1 (2011-07-08) > Put the statement jpeg("test.jpg")

Re: [R] capturing a figure to PDF or Image

2011-09-05 Thread Eran Eidinger
The text seems to be white, reformatted: On Tue, Sep 6, 2011 at 8:53 AM, Eran Eidinger wrote: > Thank you Sarah and David, > > I only used a simple plot, and remembered to dev.off(). > attached is the session: > > > plot(c(1,2,3),c(3,2,4))> jpeg("test.jpg")> dev.off()RStudioGD > 2 > ses

Re: [R] capturing a figure to PDF or Image

2011-09-05 Thread Eran Eidinger
Thank you Sarah and David, I only used a simple plot, and remembered to dev.off(). attached is the session: > plot(c(1,2,3),c(3,2,4))> jpeg("test.jpg")> dev.off()RStudioGD 2 > sessionInfo()R version 2.13.1 (2011-07-08) Platform: x86_64-pc-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=Hebre

Re: [R] capturing a figure to PDF or Image

2011-09-05 Thread David Winsemius
On Sep 5, 2011, at 11:14 AM, Eran Eidinger wrote: Sorry guys, just removed, the "at" prameters. The warnings are gone now, but I still get an empty image, no matter which function i use (pdf, jpeg, bmp...) Any clue? The most common error is failing to call dev.off() after the plotting is

Re: [R] capturing a figure to PDF or Image

2011-09-05 Thread Sarah Goslee
Hi Eran, To be able to help, we need at a minimum a reproducible example and the output of sessionInfo(). Sarah On Mon, Sep 5, 2011 at 11:14 AM, Eran Eidinger wrote: > Sorry guys, just removed, the "at" prameters. The warnings are gone now, but > I still get an empty image, no matter which func

Re: [R] capturing a figure to PDF or Image

2011-09-05 Thread Eran Eidinger
Sorry guys, just removed, the "at" prameters. The warnings are gone now, but I still get an empty image, no matter which function i use (pdf, jpeg, bmp...) Any clue? Thanks, Eran. On Mon, Sep 5, 2011 at 6:09 PM, Eran Eidinger wrote: > Hello, > > I've been using jpeg(), bmp() and pdf() to captur

[R] capturing a figure to PDF or Image

2011-09-05 Thread Eran Eidinger
Hello, I've been using jpeg(), bmp() and pdf() to capture plots. I've used the parameter "at" in a plot, to define the tickmarks. It works fine on screen, but when I try to print it to a file, it gives a warning: "at" is not a graphical parameter and prints an empty figure. Can you help? Than