[From nobody Mon Apr 27 09:13:56 2009 Date: Fri, 21 May 2004 16:22:25 +0000 From: David Whiting <dave@192.168.57.2> To: Stephen Eglen <stephen@anc.ed.ac.uk> Subject: Re: is it possible to display plots in an emacs buffer? Message-ID: <20040521162225.GM14047@192.168.57.2> References: <40AE06BD.8050305@hotmail.com> <16557.60500.695475.124677@bushmills.inf.ed.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16557.60500.695475.124677@bushmills.inf.ed.ac.uk> User-Agent: Mutt/1.4.1i On Fri, May 21, 2004 at 12:47:32PM +0100, Stephen Eglen wrote: > > Lets try: > > is it possible to display the plots R makes inside an emacs buffer? > > > > I hope to get the usual answer... ;-) > Yes! > > But that's a qualified yes... I think it is _possible_, but as far as > I know, no-one has invested time in it. I once played with using w3m in emacs and outputing from R to html and displaying the html in R. w3m is a text-based browser but is able to show images. http://www.staff.ncl.ac.uk/david.whiting/R-w3m.html Here is an example of some code that was posted to the r-help mailing list a while back that made use of RHTML (I think). I can't remember much about the code though, except that I was able to run it as it was and get this output. http://www.staff.ncl.ac.uk/david.whiting/R-w3m-example.png If all you want to do is display a plot, then you could create a png file and then display that using w3m: (w3m-goto-url "file:///myplot.png") At the moment this is still probably more work than you would want it to be, though. Dave -- David Whiting Adult Morbidity and Mortality Project (AMMP) PO Box 65243, Aga Khan Foundation Building - Ground Floor Plot No 344 Urambo Street, Upanga, Dar es Salaam, Tanzania. Tel: +255 22 2153388, Fax: +255 22 2153385 AMMP website: www.ncl.ac.uk/ammp Against MS attachments. Why? See for example: http://www.goldmark.org/netrants/no-word/attach.html http://linuxtoday.com/news_story.php3?ltsn=2002-01-11-002-20-OP ]