forked from mirrors/org-mode
54 lines
1.2 KiB
Org Mode
54 lines
1.2 KiB
Org Mode
#+title: The Library of Babel
|
|
#+SEQ_TODO: TODO PROPOSED | DONE DEFERRED REJECTED
|
|
#+OPTIONS: H:3 num:nil toc:t
|
|
#+STARTUP: odd hideblocks
|
|
|
|
#+begin_html
|
|
<div id="subtitle">
|
|
<p>
|
|
off-the-shelf functions for data analysis and plotting using <a href="org-babel-worg.html">org-babel</a><br/>
|
|
<a href="http://downlode.org/Etext/library_of_babel.html">Full text of the Borges short story</a>
|
|
</p>
|
|
</div>
|
|
<div id="logo">
|
|
<p>
|
|
<img src="images/library-of-babel.png" alt="images/tower-of-babel.png" />
|
|
<div id="attr">from <a href="http://asymptotia.com/category/books/">asymptotia</a></div>
|
|
</p>
|
|
</div>
|
|
#+end_html
|
|
|
|
* Plotting code
|
|
Plot column 2 (y axis) against column 1 (x axis). Columns 3 and beyond, if present, are ignored.
|
|
|
|
#+srcname: R-plot(data=R-plot-example-data)
|
|
#+begin_src R :session *R*
|
|
plot(data)
|
|
#+end_src
|
|
|
|
#+tblname: R-plot-example-data
|
|
| 1 | 2 |
|
|
| 2 | 4 |
|
|
| 3 | 9 |
|
|
| 4 | 16 |
|
|
| 5 | 25 |
|
|
|
|
#+lob: R-plot(data=R-plot-example-data)
|
|
|
|
#+resname: R-plot(data=R-plot-example-data)
|
|
: nil
|
|
|
|
* Etc
|
|
#+srcname: python-identity(a=1)
|
|
#+begin_src python
|
|
a
|
|
#+end_src
|
|
|
|
#+srcname: python-add(a=1, b=2)
|
|
#+begin_src python
|
|
a + b
|
|
#+end_src
|
|
|
|
|
|
|