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/ ______________________________________________ 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.