Re: [R] save plot

2010-08-04 Thread John Kane
Yes,  ?jpeg

--- On Tue, 8/3/10, linda.s samrobertsm...@gmail.com wrote:

 From: linda.s samrobertsm...@gmail.com
 Subject: Re: [R] save plot
 To: gavin.simp...@ucl.ac.uk
 Cc: r-help@r-project.org
 Received: Tuesday, August 3, 2010, 5:36 PM
  [I presume you addressed this to
 Duncan Murdoch for a good reason???]
 
  Open a new device before plotting, do your plotting,
 close the device.
 
  For example, using a PDF device via pdf():
 
  pdf(my_plots.pdf, height = 8, width = 8, pointsize =
 10,
     version = 1.4, onefile = TRUE)
  for(i in 1:10) {
     y - rnorm(100)
     x - rnorm(100)
     plot(y ~ x)
  }
  dev.off()
 
 Can I make a group of jpg instead of pdfs?
 Thanks.
 Linda
 
 __
 R-help@r-project.org
 mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained,
 reproducible code.
 



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] save plot

2010-08-04 Thread linda.s
Can I make a group of jpeg instead of pdfs?
Thanks.
Linda

On Wed, Aug 4, 2010 at 6:47 AM, John Kane jrkrid...@yahoo.ca wrote:
 Yes,  ?jpeg

 --- On Tue, 8/3/10, linda.s samrobertsm...@gmail.com wrote:

 From: linda.s samrobertsm...@gmail.com
 Subject: Re: [R] save plot
 To: gavin.simp...@ucl.ac.uk
 Cc: r-help@r-project.org
 Received: Tuesday, August 3, 2010, 5:36 PM
  [I presume you addressed this to
 Duncan Murdoch for a good reason???]
 
  Open a new device before plotting, do your plotting,
 close the device.
 
  For example, using a PDF device via pdf():
 
  pdf(my_plots.pdf, height = 8, width = 8, pointsize =
 10,
     version = 1.4, onefile = TRUE)
  for(i in 1:10) {
     y - rnorm(100)
     x - rnorm(100)
     plot(y ~ x)
  }
  dev.off()

 Can I make a group of jpg instead of pdfs?
 Thanks.
 Linda

 __
 R-help@r-project.org
 mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained,
 reproducible code.





__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] save plot

2010-08-04 Thread Alain Guillet

 ?jpeg

On 04-Aug-10 14:28, linda.s wrote:

Can I make a group of jpeg instead of pdfs?
Thanks.
Linda

On Wed, Aug 4, 2010 at 6:47 AM, John Kanejrkrid...@yahoo.ca  wrote:

Yes,  ?jpeg

--- On Tue, 8/3/10, linda.ssamrobertsm...@gmail.com  wrote:


From: linda.ssamrobertsm...@gmail.com
Subject: Re: [R] save plot
To: gavin.simp...@ucl.ac.uk
Cc: r-help@r-project.org
Received: Tuesday, August 3, 2010, 5:36 PM

[I presume you addressed this to

Duncan Murdoch for a good reason???]

Open a new device before plotting, do your plotting,

close the device.

For example, using a PDF device via pdf():

pdf(my_plots.pdf, height = 8, width = 8, pointsize =

10,

version = 1.4, onefile = TRUE)
for(i in 1:10) {
y- rnorm(100)
x- rnorm(100)
plot(y ~ x)
}
dev.off()

Can I make a group of jpg instead of pdfs?
Thanks.
Linda

__
R-help@r-project.org
mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained,
reproducible code.





__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



--
Alain Guillet
Statistician and Computer Scientist

SMCS - IMMAQ - Université catholique de Louvain
Bureau c.316
Voie du Roman Pays, 20
B-1348 Louvain-la-Neuve
Belgium

tel: +32 10 47 30 50

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] save plot

2010-08-03 Thread linda.s
 [I presume you addressed this to Duncan Murdoch for a good reason???]

 Open a new device before plotting, do your plotting, close the device.

 For example, using a PDF device via pdf():

 pdf(my_plots.pdf, height = 8, width = 8, pointsize = 10,
    version = 1.4, onefile = TRUE)
 for(i in 1:10) {
    y - rnorm(100)
    x - rnorm(100)
    plot(y ~ x)
 }
 dev.off()

Can I make a group of jpg instead of pdfs?
Thanks.
Linda

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] save plot

2010-07-19 Thread dbandler

Is there an easy way to load plots in png files into R?  I'm using the png 
function to create the plots from a batch job and would like to view them later.

-Original Message-
From: Gavin Simpson gavin.simp...@ucl.ac.uk
Sent: Saturday, July 17, 2010 6:21pm
To: linda.s samrobertsm...@gmail.com
Cc: r-help@r-project.org
Subject: Re: [R] save plot

On Sat, 2010-07-17 at 14:52 -0400, linda.s wrote:
  Open a new device before plotting, do your plotting, close the device.
 
  For example, using a PDF device via pdf():
 
  pdf(my_plots.pdf, height = 8, width = 8, pointsize = 10,
 version = 1.4, onefile = TRUE)
  for(i in 1:10) {
 y - rnorm(100)
 x - rnorm(100)
 plot(y ~ x)
  }
  dev.off()
 
  The last line (dev.off() is very important as the file will not be valid
  pdf without closing the device.
 
  HTH
 
  G
 
 I got the error:
  pdf(my_plots.pdf, height = 8, width = 8, pointsize = 10,
 +version = 1.4, onefile = TRUE)
  for(i in 1:10) {
 +y - rnorm(100)
 +x - rnorm(100)
 +plot(y ~ x)
 + }
  dev.off()
 null device
   1

If by error you mean null device \n 1, that is a notice informing
you what the now current plotting device is, i.e. in this cases there
isn't one.

Did you look in your current working directory (see what that is by
using getwd() ) for a pdf named my_plots.pdf?

G

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,  [f] +44 (0)20 7679 0565
 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London  [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] save plot

2010-07-17 Thread Gavin Simpson
On Fri, 2010-07-16 at 11:17 -0400, linda.s wrote:
 I made a plot, but after I made a second plot, the previous plot was
 gone. How can I save all the plots in a file (I do not manually copy
 and paste them one by one)?
 Thanks.
 Linda

[I presume you addressed this to Duncan Murdoch for a good reason???]

Open a new device before plotting, do your plotting, close the device.

For example, using a PDF device via pdf():

pdf(my_plots.pdf, height = 8, width = 8, pointsize = 10,
version = 1.4, onefile = TRUE)
for(i in 1:10) {
y - rnorm(100)
x - rnorm(100)
plot(y ~ x)
}
dev.off()

The last line (dev.off() is very important as the file will not be valid
pdf without closing the device.

HTH

G

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,  [f] +44 (0)20 7679 0565
 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London  [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] save plot

2010-07-17 Thread linda.s
 Open a new device before plotting, do your plotting, close the device.

 For example, using a PDF device via pdf():

 pdf(my_plots.pdf, height = 8, width = 8, pointsize = 10,
    version = 1.4, onefile = TRUE)
 for(i in 1:10) {
    y - rnorm(100)
    x - rnorm(100)
    plot(y ~ x)
 }
 dev.off()

 The last line (dev.off() is very important as the file will not be valid
 pdf without closing the device.

 HTH

 G

I got the error:
 pdf(my_plots.pdf, height = 8, width = 8, pointsize = 10,
+version = 1.4, onefile = TRUE)
 for(i in 1:10) {
+y - rnorm(100)
+x - rnorm(100)
+plot(y ~ x)
+ }
 dev.off()
null device
  1

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] save plot

2010-07-17 Thread Uwe Ligges



On 17.07.2010 20:52, linda.s wrote:

Open a new device before plotting, do your plotting, close the device.

For example, using a PDF device via pdf():

pdf(my_plots.pdf, height = 8, width = 8, pointsize = 10,
version = 1.4, onefile = TRUE)
for(i in 1:10) {
y- rnorm(100)
x- rnorm(100)
plot(y ~ x)
}
dev.off()

The last line (dev.off() is very important as the file will not be valid
pdf without closing the device.

HTH

G


I got the error:

pdf(my_plots.pdf, height = 8, width = 8, pointsize = 10,

+version = 1.4, onefile = TRUE)

for(i in 1:10) {

+y- rnorm(100)
+x- rnorm(100)
+plot(y ~ x)
+ }

dev.off()

null device
   1





Which error??? Everyting went fine, as far as I can see.

Uwe Ligges




__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] save plot

2010-07-17 Thread Gavin Simpson
On Sat, 2010-07-17 at 14:52 -0400, linda.s wrote:
  Open a new device before plotting, do your plotting, close the device.
 
  For example, using a PDF device via pdf():
 
  pdf(my_plots.pdf, height = 8, width = 8, pointsize = 10,
 version = 1.4, onefile = TRUE)
  for(i in 1:10) {
 y - rnorm(100)
 x - rnorm(100)
 plot(y ~ x)
  }
  dev.off()
 
  The last line (dev.off() is very important as the file will not be valid
  pdf without closing the device.
 
  HTH
 
  G
 
 I got the error:
  pdf(my_plots.pdf, height = 8, width = 8, pointsize = 10,
 +version = 1.4, onefile = TRUE)
  for(i in 1:10) {
 +y - rnorm(100)
 +x - rnorm(100)
 +plot(y ~ x)
 + }
  dev.off()
 null device
   1

If by error you mean null device \n 1, that is a notice informing
you what the now current plotting device is, i.e. in this cases there
isn't one.

Did you look in your current working directory (see what that is by
using getwd() ) for a pdf named my_plots.pdf?

G

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,  [f] +44 (0)20 7679 0565
 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London  [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] save plot

2010-07-16 Thread linda.s
I made a plot, but after I made a second plot, the previous plot was
gone. How can I save all the plots in a file (I do not manually copy
and paste them one by one)?
Thanks.
Linda

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] save plot

2010-07-16 Thread Erik Iverson
We need to know how you're doing this, with a minimal example that we 
can run.  Most graphics devices accept a file or filename argument, so 
that's one way.  If you're using the pdf device, multiple plots will 
create multiple pages in the final output..


linda.s wrote:

I made a plot, but after I made a second plot, the previous plot was
gone. How can I save all the plots in a file (I do not manually copy
and paste them one by one)?
Thanks.
Linda

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Save plot to text file

2009-10-07 Thread Henrique Dallazuanna
See ?recordPlot

On Wed, Oct 7, 2009 at 5:09 AM, Pradeep Raje raje.prad...@gmail.com wrote:
 Dear all:I am sorry if I have missed a solution posted earlier.
 My collaborator (sitting in a different time zone  and not on R) wants to
 re-plot the charts that I have obtained after some complex processing. There
 are thirty charts in all, of different types, and some are multi-plots
 (plot(new=T)).
 Is there a way to 'save' or 'dump just the x-y coordinates to a text/ASCII
 file, like x,y1,y2,y3 or even (x,y1), append (x,y2), append (x,y3)...
 Any help will be gratefully acknowledged.
 Thanks  warm regards,
 pradeep

        [[alternative HTML version deleted]]

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.




-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40 S 49° 16' 22 O

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.