Re: [Orgmode] graphing from org-tables

2009-01-28 Thread Carsten Dominik
Hi Dan, I don't know anything about R, but this looks really interesting. Whenever you are ready, I will distribute this with Org. - Carsten On Jan 28, 2009, at 4:06 AM, Dan Davison wrote: On Mon, Jan 26, 2009 at 09:53:37AM +0100, Carsten Dominik wrote: ... (defun

Re: [Orgmode] graphing from org-tables

2009-01-27 Thread Dan Davison
On Mon, Jan 26, 2009 at 09:53:37AM +0100, Carsten Dominik wrote: ... (defun org-table-remote-range (id form optional replace keep-empty numbers lispp) Get a field value or a list of values in a range from table at ID. In 6.19, there is now built-in

Re: [Orgmode] graphing from org-tables

2009-01-26 Thread Carsten Dominik
On Jan 23, 2009, at 8:30 AM, Carsten Dominik wrote: On Jan 23, 2009, at 2:37 AM, Eric Schulte wrote: Dan Davison davi...@stats.ox.ac.uk writes: On Mon, Dec 22, 2008 at 12:00:14PM -0500, Eric Schulte wrote: Hi Dan, ... 2) Also interesting is the idea of referencing a table from a

Re: [Orgmode] graphing from org-tables

2009-01-22 Thread Dan Davison
On Mon, Dec 22, 2008 at 12:00:14PM -0500, Eric Schulte wrote: Hi Dan, ... 2) Also interesting is the idea of referencing a table from a block of R code elsewhere in the org file. I've worked some on processing blocks of R code in org files in a manner similar to Sweave.

Re: [Orgmode] graphing from org-tables

2009-01-22 Thread Eric Schulte
Dan Davison davi...@stats.ox.ac.uk writes: On Mon, Dec 22, 2008 at 12:00:14PM -0500, Eric Schulte wrote: Hi Dan, ... 2) Also interesting is the idea of referencing a table from a block of R code elsewhere in the org file. I've worked some on processing blocks of R code in org

Re: [Orgmode] graphing from org-tables

2009-01-22 Thread Carsten Dominik
On Jan 23, 2009, at 2:37 AM, Eric Schulte wrote: Dan Davison davi...@stats.ox.ac.uk writes: On Mon, Dec 22, 2008 at 12:00:14PM -0500, Eric Schulte wrote: Hi Dan, ... 2) Also interesting is the idea of referencing a table from a block of R code elsewhere in the org file. I've

Re: [Orgmode] graphing from org-tables

2008-12-22 Thread Eric Schulte
Hi Dan, This looks very interesting, and I look forward to playing around with these functions (when I have some/any free time). After a quick glance it seems like these functions could be expanded in two different directions... 1) Adapted to a simple calling mechanism like the one used for

Re: [Orgmode] graphing from org-tables

2008-12-21 Thread Dan Davison
On Mon, Jul 28, 2008 at 04:41:52PM +0100, Dan Davison wrote: On Mon, Jul 28, 2008 at 08:32:22AM -0700, Eric Schulte wrote: Hi Dan, One way around the sleep(60) hack may be to create the R graph using an inferior R process. See Yep, I just this minute asked for help on the Emacs

Re: [Orgmode] graphing from org-tables

2008-07-28 Thread Eric Schulte
It seems that the ability to generate graphs/plots from org files may be general enough to be useful as either an addition to org-table or as a new org-plot library. Carsten has suggested the addition of a new gnuplot (or maybe R-plot or just plot) link type to be used for plotting I would be

Re: [Orgmode] graphing from org-tables

2008-07-28 Thread Eric Schulte
Hi Dan, One way around the sleep(60) hack may be to create the R graph using an inferior R process. See http://cran.r-project.org/doc/FAQ/R-FAQ.html#R-and-Emacs for information on running R functions from inside of Emacs. Best -- Eric On Saturday, July 26, at 19:15, Dan Davison wrote: R

Re: [Orgmode] graphing from org-tables

2008-07-28 Thread Dan Davison
On Mon, Jul 28, 2008 at 08:32:22AM -0700, Eric Schulte wrote: Hi Dan, One way around the sleep(60) hack may be to create the R graph using an inferior R process. See Yep, I just this minute asked for help on the Emacs Speaks Statistics (ESS) mailing list! I'll report back if I make progress

Re: [Orgmode] graphing from org-tables

2008-07-28 Thread Carsten Dominik
On Jul 28, 2008, at 7:26 AM, Eric Schulte wrote: 3) Currently I find it very useful to be able to see an initial plot of a table with a single command, however there should be a sliding scale from ease of plotting to greater control over the final plot. Maybe through specification of

Re: [Orgmode] graphing from org-tables

2008-07-26 Thread Dan Davison
R (www.r-project.org) is pretty good for data plotting and statistical analyses. Here's my effort at the org-table-plot function, using R. Since R contains a csv importer that can read from stdin, it's pretty simple. I've tried to code it so that you can provide an arbitrary R function as the

[Orgmode] graphing from org-tables

2008-07-25 Thread Eric Schulte
Any advice for quick graphing of a table in org-mode? I searched the mailing list archives and found nothing. It would be nice to have a command to dump the contents of a table (or single column) to gnuplot. I know calc can interact with gnuplot info:calc:Basic Graphics but with my VERY

Re: [Orgmode] graphing from org-tables

2008-07-25 Thread Carsten Dominik
Hi Eric, Currently this is not implemented. Could be done, there are functions to grab sections of a table. Nice add-on project? - Carsten On Jul 25, 2008, at 8:53 AM, Eric Schulte wrote: Any advice for quick graphing of a table in org-mode? I searched the mailing list archives and

Re: [Orgmode] graphing from org-tables

2008-07-25 Thread James TD Smith
On 2008-07-25 08:53:31(-0700), Eric Schulte wrote: Any advice for quick graphing of a table in org-mode? I have a setup for plotting data from tables. I'm not sure if it's exactly what you want, but yoy may find it useful. 1. Add the following to your .emacs: (defun ahkt-plot-table

Re: [Orgmode] graphing from org-tables

2008-07-25 Thread Carsten Dominik
Coool On Jul 25, 2008, at 9:25 AM, James TD Smith wrote: On 2008-07-25 08:53:31(-0700), Eric Schulte wrote: Any advice for quick graphing of a table in org-mode? I have a setup for plotting data from tables. I'm not sure if it's exactly what you want, but yoy may find it useful.

Re: [Orgmode] graphing from org-tables

2008-07-25 Thread Eric Schulte
Thanks, both for the code, and the instructions it worked on the first try! On Friday, July 25, at 17:25, James TD Smith wrote: On 2008-07-25 08:53:31(-0700), Eric Schulte wrote: Any advice for quick graphing of a table in org-mode? I have a setup for plotting data from tables.

Re: [Orgmode] graphing from org-tables

2008-07-25 Thread Eric Schulte
I had some time waiting for things to execute, so I condensed your process into a single command (borrowing heavily from org-export-table). (defun org-table/gnuplot (optional x-col) Plot the current table using gnuplot. Use a prefix argument to specify a column to use for the x-coordinates,