[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] org-R tutorial on Worg
From: |
Dan Davison |
Subject: |
Re: [Orgmode] org-R tutorial on Worg |
Date: |
Thu, 5 Feb 2009 09:58:42 -0500 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, Feb 05, 2009 at 08:04:11AM +0000, Graham Smith wrote:
> Dan,
>
> I'm working through the tutorial and not got very far :-(
>
> #+TBLNAME:continuous-data
> | |
> |-------------------|
> | -4.76347066844695 |
> | -1.83010300550287 |
> | -3.62646358009839 |
> | -3.06483847781371 |
> | -3.29886543850004 |
> | -3.33136718271076 |
> | -2.92393768071614 |
> | -1.81447109443947 |
> | -2.77876256693823 |
> | -3.04428187935138 |
> | 2.68011061127436 |
> | 3.8462031281076 |
> | 3.26010701204355 |
> | 3.13388406902156 |
> | 2.64108043612206 |
> | 2.79307900174277 |
> | 2.63510171209823 |
> | 0.382633073598201 |
> | 1.36106585545773 |
> | 3.15710034712042 |
> #+RR: x<-c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1))
> #+R: title:"continuous-data" output-to-buffer:t
>
> [[file:tmp.png][histogram example]]
> #+R: action:hist columns:1 colour:hotpink
> #+R: intable:continuous-data outfile:"png" title:"histogram example"
>
> This is cut and pasted from Emacs and when I run org-R I get and error:
>
> "before first headline at position 975 in buffer RorgTest.org"
>
>
> Have you any suggestions ?
outfile:"png" specifies that you want png output saved to a file in
the org-attach dir for the current entry. However, I think that your
table is not in an entry (i.e. there is no heading in the file
above). So org-attach complains. I think in this case this is
appropriate behaviour, rather than a bug.
So, make sure that you are working in an org entry, by adding a
heading above the table, e.g.
* org-R histogram example
#+TBLNAME:continuous-data
| |
|-------------------|
| -3.06521250484893 |
| -3.85900568302554 |
| -2.31281550717715 |
| -2.69410857795684 |
| -2.54226178999743 |
| -3.02282932827444 |
| -3.39871174816189 |
| -2.91887758977056 |
| -3.05343781967347 |
| -2.76498552588994 |
| 1.46406677150374 |
| 2.45199818968135 |
| 1.40791932601955 |
| 1.29757561821086 |
| 2.48973905577704 |
| 2.69374921012632 |
| 2.39647207311083 |
| 3.21737310446711 |
| 1.22693189766015 |
| 2.37953000571237 |
#+RR: x<-c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1))
#+R: title:"continuous-data" output-to-buffer:t
[the following should now work.]
#+R: action:hist columns:1 colour:hotpink
#+R: intable:continuous-data outfile:"png" title:"histogram example"
Dan
>
> Thanks, Graham
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
--
http://www.stats.ox.ac.uk/~davison