[R] saving plots

Philipp Pagel p.pagel at wzw.tum.de
Mon Feb 14 15:32:27 CET 2011


On Mon, Feb 14, 2011 at 12:59:13PM +0530, km wrote:
> Hi all,
> 
> Is there a way to save the currently displayed plot to  an image format just
> after we view it?
> I think this would be more intuitive as a user if I wish to save it just
> after I visualize the plot.
> 
> I am aware that we need to do some thing like this
> jpeg('somefilename.jpg')
> ... plot... commands...
> dev.off()

In addition to savePlot, which has already been recommended, you may
also want to look at dev.copy2eps and dev.copy2pdf. 

cu
	Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany
http://webclu.bio.wzw.tum.de/~pagel/



More information about the R-help mailing list