Re: [R] automatically save graphic

From: Richard Cotton <Richard.Cotton_at_hsl.gov.uk>
Date: Tue, 04 Mar 2008 02:02:54 -0800 (PST)

mysimbaa wrote:
>
> I write some code which produce a graphic
> Now I try at the end to output it (bitmap or jpeg) like this way :
>
> - pop up window asking me to choose a path where to save my picture
> - choose name for this picture
>

Your message isn't very clear, so forgive me if I have misunderstood, but 1. You can save your pictures in the manner you described by clicking on the File menu in a graphics window, then 'Save As...', and choose bitmap or jpeg.

2. If you want to save plots automatically, then do it in code: jpeg("foo.jpg")
plot(1:100)
dev.off()



Regards,
Richie.

Mathematical Sciences Unit
HSL

-- 
View this message in context: http://www.nabble.com/automatically-save-graphic-tp15822254p15824000.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Tue 04 Mar 2008 - 10:06:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 04 Mar 2008 - 13:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive