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/