Browse Source

additions to org-R tutorial

Dan 11 years ago
parent
commit
28097ebb41

BIN
images/org-R/#org-users-tree.png#


+ 0 - 1
images/org-R/.#org-users-tree.png

@@ -1 +0,0 @@
-dan@Tichodroma.16365:1233673659

BIN
images/org-R/org-users-tree.png


BIN
images/org-R/org-variables-tree.png


BIN
org-tutorials/org-R/#org-variables-barplot.png#


+ 263 - 0
org-tutorials/org-R/#org-variables-counts.org#

@@ -0,0 +1,263 @@
+#+TBLNAME:org-variables-counts
+| value                                             | count |
+|---------------------------------------------------+-------|
+| org-agenda-files                                  |    22 |
+| org-agenda-start-on-weekday                       |    22 |
+| org-log-done                                      |    22 |
+| org-todo-keywords                                 |    22 |
+| org-agenda-include-diary                          |    19 |
+| org-hide-leading-stars                            |    19 |
+| org-remember-templates                            |    19 |
+| org-agenda-skip-scheduled-if-done                 |    18 |
+| org-agenda-skip-deadline-if-done                  |    16 |
+| org-use-fast-todo-selection                       |    16 |
+| org-agenda-custom-commands                        |    15 |
+| org-default-notes-file                            |    15 |
+| org-special-ctrl-a/e                              |    14 |
+| org-agenda-sorting-strategy                       |    13 |
+| org-agenda-ndays                                  |    12 |
+| org-fast-tag-selection-single-key                 |    12 |
+| auto-mode-alist                                   |    11 |
+| org-agenda-window-setup                           |    11 |
+| org-deadline-warning-days                         |    11 |
+| org-stuck-projects                                |    11 |
+| org-agenda-show-all-dates                         |    10 |
+| org-completion-use-ido                            |    10 |
+| org-mode-hook                                     |    10 |
+| org-refile-targets                                |    10 |
+| org-directory                                     |     9 |
+| org-return-follows-link                           |     9 |
+| org-reverse-note-order                            |     9 |
+| org-blank-before-new-entry                        |     8 |
+| org-columns-default-format                        |     8 |
+| org-enforce-todo-dependencies                     |     8 |
+| org-tag-alist                                     |     8 |
+| org-drawers                                       |     7 |
+| org-export-html-style                             |     7 |
+| org-export-with-LaTeX-fragments                   |     7 |
+| org-publish-project-alist                         |     7 |
+| org-remember-store-without-prompt                 |     7 |
+| org-special-ctrl-k                                |     7 |
+| org-tags-column                                   |     7 |
+| org-tags-match-list-sublevels                     |     7 |
+| org-agenda-todo-ignore-scheduled                  |     6 |
+| org-modules                                       |     6 |
+| org-refile-use-outline-path                       |     6 |
+| org-startup-folded                                |     6 |
+| org-agenda-restore-windows-after-quit             |     5 |
+| org-agenda-todo-ignore-with-date                  |     5 |
+| org-archive-location                              |     5 |
+| org-clock-persist                                 |     5 |
+| org-export-latex-classes                          |     5 |
+| org-global-properties                             |     5 |
+| org-id-method                                     |     5 |
+| org-odd-levels-only                               |     5 |
+| org-agenda-skip-timestamp-if-done                 |     4 |
+| org-agenda-tags-column                            |     4 |
+| org-agenda-time-grid                              |     4 |
+| org-agenda-todo-ignore-deadlines                  |     4 |
+| org-archive-save-context-info                     |     4 |
+| org-clock-in-resume                               |     4 |
+| org-clock-in-switch-to-state                      |     4 |
+| org-default-priority                              |     4 |
+| org-goto-interface                                |     4 |
+| org-link-abbrev-alist                             |     4 |
+| org-lowest-priority                               |     4 |
+| org-outline-path-complete-in-steps                |     4 |
+| org-remember-insinuate                            |     4 |
+| org-time-stamp-rounding-minutes                   |     4 |
+| org-todo-keyword-faces                            |     4 |
+| org-todo-state-tags-triggers                      |     4 |
+| org-use-tag-inheritance                           |     4 |
+| org-agenda-exporter-settings                      |     3 |
+| org-agenda-log-mode-items                         |     3 |
+| org-agenda-prefix-format                          |     3 |
+| org-agenda-skip-unavailable-files                 |     3 |
+| org-clock-history-length                          |     3 |
+| org-clock-out-remove-zero-time-clocks             |     3 |
+| org-combined-agenda-icalendar-file                |     3 |
+| org-cycle-global-at-bob                           |     3 |
+| org-email-link-description-format                 |     3 |
+| org-export-mark-todo-in-toc                       |     3 |
+| org-fast-tag-selection-include-todo               |     3 |
+| org-fontify-done-headline                         |     3 |
+| org-icalendar-include-todo                        |     3 |
+| org-icalendar-store-UID                           |     3 |
+| org-link-frame-setup                              |     3 |
+| org-M-RET-may-split-line                          |     3 |
+| org-remember-default-headline                     |     3 |
+| org-show-siblings                                 |     3 |
+| org-time-stamp-custom-formats                     |     3 |
+| org-use-fast-tag-selection                        |     3 |
+| org-use-property-inheritance                      |     3 |
+| org-after-todo-state-change-hook                  |     2 |
+| org-agenda-columns-add-appointments-to-effort-sum |     2 |
+| org-agenda-dim-blocked-tasks                      |     2 |
+| org-agenda-include-all-todo                       |     2 |
+| org-agenda-mode-hook                              |     2 |
+| org-agenda-repeating-timestamp-show-all           |     2 |
+| org-agenda-start-with-clockreport-mode            |     2 |
+| org-agenda-text-search-extra-files                |     2 |
+| org-agenda-todo-list-sublevels                    |     2 |
+| org-archive-mark-done                             |     2 |
+| org-attach-method                                 |     2 |
+| org-clock-into-drawer                             |     2 |
+| org-clock-out-when-done                           |     2 |
+| org-clock-persistence-insinuate                   |     2 |
+| org-code                                          |     2 |
+| org-confirm-elisp-link-function                   |     2 |
+| org-cycle-include-plain-lists                     |     2 |
+| org-disputed-keys                                 |     2 |
+| org-ditaa-jar-path                                |     2 |
+| org-ellipsis                                      |     2 |
+| org-empty-line-terminates-plain-lists             |     2 |
+| org-export-author-info                            |     2 |
+| org-export-default-language                       |     2 |
+| org-export-html-table-tag                         |     2 |
+| org-export-latex-remove-from-headlines            |     2 |
+| org-export-with-sub-superscripts                  |     2 |
+| org-file-apps                                     |     2 |
+| org-hide-emphasis-markers                         |     2 |
+| org-link-mailto-program                           |     2 |
+| org-log-repeat                                    |     2 |
+| org-log-state-notes-insert-after-drawers          |     2 |
+| org-publish-use-timestamps-flag                   |     2 |
+| org-remember-use-refile-when-interactive          |     2 |
+| org-remove-highlights-with-change                 |     2 |
+| org-replace-disputed-keys                         |     2 |
+| org-show-entry-below                              |     2 |
+| org-show-following-heading                        |     2 |
+| org-show-hierarchy-above                          |     2 |
+| org-startup-options                               |     2 |
+| org-structure-template-alist                      |     2 |
+| org-support-shift-select                          |     2 |
+| org-tab-follows-link                              |     2 |
+| org-table                                         |     2 |
+| org-tag                                           |     2 |
+| org-tags-exclude-from-inheritance                 |     2 |
+| org-todo-interpretation                           |     2 |
+| appt-activate                                     |     1 |
+| before-save-hook                                  |     1 |
+| iimage-mode-image-search-path                     |     1 |
+| org-add-link-type                                 |     1 |
+| org-add-to-invisibility-spec                      |     1 |
+| org-after-todo-statistics-hook                    |     1 |
+| org-agenda-after-show-hook                        |     1 |
+| org-agenda-align-tags-to-column                   |     1 |
+| org-agenda-clockreport-parameter-plist            |     1 |
+| org-agenda-columns-compute-summary-properties     |     1 |
+| org-agenda-compact-blocks                         |     1 |
+| org-agenda-deadline-leaders                       |     1 |
+| org-agenda-deadline-relative-text                 |     1 |
+| org-agenda-deadline-text                          |     1 |
+| org-agenda-default-appointment-duration           |     1 |
+| org-agenda-remove-times-when-in-prefix            |     1 |
+| org-agenda-scheduled-leaders                      |     1 |
+| org-agenda-scheduled-relative-text                |     1 |
+| org-agenda-scheduled-text                         |     1 |
+| org-agenda-show-inherited-tags                    |     1 |
+| org-agenda-show-log                               |     1 |
+| org-agenda-start-with-follow-mode                 |     1 |
+| org-agenda-tags-todo-honor-ignore-options         |     1 |
+| org-agenda-todo-keyword-format                    |     1 |
+| org-agenda-use-time-grid                          |     1 |
+| org-annotate-file-storage-file                    |     1 |
+| org-attach-auto-tag                               |     1 |
+| org-attach-directory                              |     1 |
+| org-attach-file-list-property                     |     1 |
+| org-blank-before-bullet                           |     1 |
+| org-calc-default-modes                            |     1 |
+| org-clock-persist-file                            |     1 |
+| org-clock-persist-query-resume                    |     1 |
+| org-clock-persist-query-save                      |     1 |
+| org-clock-remove-zero-time-clocks                 |     1 |
+| org-column                                        |     1 |
+| org-confirm-shell-links                           |     1 |
+| org-context-in-file-links                         |     1 |
+| org-cycle-emulate-tab                             |     1 |
+| org-date                                          |     1 |
+| org-default-notes-files                           |     1 |
+| org-description-max-indent                        |     1 |
+| org-done                                          |     1 |
+| org-edit-timestamp-down-means-later               |     1 |
+| org-effort-property                               |     1 |
+| org-emphasis-alist                                |     1 |
+| org-emphasis-regexp-components                    |     1 |
+| org-export-default-directory                      |     1 |
+| org-export-headline-levels                        |     1 |
+| org-export-html-infojs-setup                      |     1 |
+| org-export-html-inline-images                     |     1 |
+| org-export-html-title-format                      |     1 |
+| org-export-html-use-infojs                        |     1 |
+| org-export-html-with-timestamp                    |     1 |
+| org-export-latex-date-format                      |     1 |
+| org-export-preserve-breaks                        |     1 |
+| org-export-remove-timestamps-from-toc             |     1 |
+| org-export-run-in-background                      |     1 |
+| org-export-section-number-format                  |     1 |
+| org-export-skip-text-before-1st-heading           |     1 |
+| org-export-with-drawers                           |     1 |
+| org-export-with-priority                          |     1 |
+| org-export-with-section-numbers                   |     1 |
+| org-export-with-tags                              |     1 |
+| org-export-with-toc                               |     1 |
+| org-extend-today-until                            |     1 |
+| org-fast-todo-selection                           |     1 |
+| org-finalize-agenda-hook                          |     1 |
+| org-fontify-emphasized-text                       |     1 |
+| org-footnote-auto-label                           |     1 |
+| org-footnote-section                              |     1 |
+| org-format-latex-options                          |     1 |
+| org-formula                                       |     1 |
+| org-gnus-prefer-web-links                         |     1 |
+| org-goto-auto-isearch                             |     1 |
+| org-goto-max-level                                |     1 |
+| org-hide                                          |     1 |
+| org-higest-priority                               |     1 |
+| org-highlight-latex-fragments-and-specials        |     1 |
+| org-icalendar-force-UID                           |     1 |
+| org-icalendar-include-sexps                       |     1 |
+| org-indirect-buffer-display                       |     1 |
+| org-infojs-options                                |     1 |
+| org-insert-heading-respect-content                |     1 |
+| org-insert-mode-line-in-empty-file                |     1 |
+| org-keep-stored-link-after-insertion              |     1 |
+| org-latex-and-export-specials                     |     1 |
+| org-link-to-org-use-id                            |     1 |
+| org-list-two-spaces-after-bullet-regexp           |     1 |
+| org-log-done-with-time                            |     1 |
+| org-log-note-clock-out                            |     1 |
+| org-log-note-headings                             |     1 |
+| org-log-states-order-reversed                     |     1 |
+| org-mairix-display-hook                           |     1 |
+| org-mairix-gnus-results-group                     |     1 |
+| org-mairix-gnus-select-display-group-function     |     1 |
+| org-mairix-mutt-display-command                   |     1 |
+| org-plain-list-ordered-item-terminator            |     1 |
+| org-popup-calendar-for-date-prompt                |     1 |
+| org-priority-start-cycle-with-default             |     1 |
+| org-property-value                                |     1 |
+| org-registry-file                                 |     1 |
+| org-registry-initialize                           |     1 |
+| org-registry-insinuate                            |     1 |
+| org-remember-clock-out-on-exit                    |     1 |
+| org-remember-interactive-interface                |     1 |
+| org-remember-templates-2                          |     1 |
+| org-remove-from-invisibility-spec                 |     1 |
+| org-sort-agenda-noeffort-is-high                  |     1 |
+| org-sort-agenda-notime-is-late                    |     1 |
+| org-special-ctrl-a                                |     1 |
+| org-special-ctrl-e                                |     1 |
+| org-startup-align-all-tables                      |     1 |
+| org-startup-truncated                             |     1 |
+| org-support-shift-translate                       |     1 |
+| org-table-export-default-format                   |     1 |
+| org-table-formula-evaluate-inline                 |     1 |
+| org-time-clocksum-format                          |     1 |
+| org-time-grid                                     |     1 |
+| org-timeline-show-empty-dates                     |     1 |
+| org-todo                                          |     1 |
+| org-verbatim                                      |     1 |
+| org-yank-adjusted-subtrees                        |     1 |
+| remember-annotation-functions                     |     1 |
+| remember-handler-functions                        |     1 |

+ 1 - 0
org-tutorials/org-R/.#org-variables-barplot.png

@@ -0,0 +1 @@
+dan@Tichodroma.8119:1233711110

+ 1 - 0
org-tutorials/org-R/.#org-variables-counts.org

@@ -0,0 +1 @@
+dan@Tichodroma.8119:1233711110

+ 1 - 0
org-tutorials/org-R/.#org-variables-hist.png

@@ -0,0 +1 @@
+dan@Tichodroma.8119:1233711110

+ 26 - 52
org-tutorials/org-R/org-R.html

@@ -6,7 +6,7 @@ lang="en" xml:lang="en">
 <title>org-R: Computing and data visualisation in Org-mode using R</title>
 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
 <meta name="generator" content="Org-mode"/>
-<meta name="generated" content="2009-02-03 13:27:00 EST"/>
+<meta name="generated" content="2009-02-03 17:36:34 EST"/>
 <meta name="author" content="Dan Davison"/>
 <style type="text/css">
  <!--/*--><![CDATA[/*><!--*/
@@ -93,11 +93,7 @@ lang="en" xml:lang="en">
 </ul>
 </li>
 <li><a href="#sec-7">Table of available options </a></li>
-<li><a href="#sec-8">Table of available actions </a>
-<ul>
-<li><a href="#sec-8.1">Actions that generate numerical output* </a></li>
-</ul>
-</li>
+<li><a href="#sec-8">Table of available actions </a></li>
 <li><a href="#sec-9">Getting help with R </a></li>
 <li><a href="#sec-10">Brief advert for R </a></li>
 </ul>
@@ -336,40 +332,10 @@ indexed data
 [e.g. a data set in which each point is a time,
 together with the size of the org source code base at that time]
 
-<p>
-Here are the available plotting actions, classified by type of data.
-</p>
-<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
-<col align="left"></col><col align="left"></col><col align="left"></col>
-<thead>
-<tr><th>action:</th><th>data type</th><th>description</th></tr>
-</thead>
-<tbody>
-<tr><td>barplot</td><td>discrete</td><td>produces 'side-by-side' bar plots if multiple columns selected</td></tr>
-<tr><td>tabulate</td><td>discrete</td><td>not a plotting action; it outputs a new org table</td></tr>
-</tbody>
-<tbody>
-<tr><td>plot</td><td>indexed</td><td>if only 1 column selected, index is automatic: 1,2,&hellip;</td></tr>
-<tr><td>lines</td><td>indexed</td><td>same as plot</td></tr>
-<tr><td>points</td><td>indexed</td><td>same as plot but don't join points with lines</td></tr>
-</tbody>
-<tbody>
-<tr><td>hist</td><td>continuous</td><td>histogram</td></tr>
-<tr><td>density</td><td>continuous</td><td>like a smoothed histogram (i.e. a curve)</td></tr>
-</tbody>
-<tbody>
-<tr><td>image</td><td>grid of values</td><td>draws a grid, with cells coloured according to their numerical values</td></tr>
-<tr><td></td><td></td><td></td></tr>
-</tbody>
-</table>
-
-
 </li>
 </ul>
 
-<p>[Apart from tabulate, the action: names are the same as the names of
-the R functions which implement them. `tabulate' is really called
-`table' in R.]
+<p>The available off-the-shelf actions are listed <a href="#sec-8">here</a>.
 </p>
 </div>
 
@@ -665,7 +631,8 @@ as a dendrogram:
 <pre class="example">
 
 [[file:org-users-tree.png][org-users-tree.png]]
-#+TBLRR: plot(hclust(dist(x, method="binary")), xlab="")
+#+TBLRR: par(bg="gray15", fg="turquoise2")
+#+TBLRR: plot(hclust(dist(x, method="binary")), ann=FALSE)
 #+TBLR: infile:"org-variables-incidence.org" intable:"incidence-matrix" rownames:t
 #+TBLR: outfile:"org-users-tree.png" title:"org-users-tree.png"
 
@@ -688,7 +655,7 @@ And to cluster org variables, we use the transpose of that incidence matrix:
 
 [[file:org-variables-tree.png][org-variables-tree.png]]
 #+TBLRR: par(bg="gray15", fg="turquoise2")
-#+TBLRR: plot(hclust(dist(t(x), method="binary")), xlab="")
+#+TBLRR: plot(hclust(dist(t(x), method="binary")), ann=FALSE)
 #+TBLR: infile:"org-variables-incidence.org" intable:"incidence-matrix" rownames:t
 #+TBLR: outfile:"org-variables-tree.png" title:"org-variables-tree.png" width:1000
 
@@ -701,6 +668,16 @@ And to cluster org variables, we use the transpose of that incidence matrix:
 <p><img src="../../images/org-R/org-variables-tree.png"  alt="../../images/org-R/org-variables-tree.png" /></p>
 </div>
 </p>
+
+<p>
+Please note that my main aim here was to give some examples of using
+org-R, rather than to show how the org variables data should be mined
+for useful information! The org-variables dendrogram does seem to have
+made some sensible clusterings (e.g. the clusters of agenda-related
+commands), but I'm going to leave it to others to decide whether this
+exercise really served to do more than illustrate org-R. Does anyone
+recognise any usage affinities between the clustered org users?
+</p>
 </div>
 </div>
 
@@ -740,7 +717,7 @@ And to cluster org variables, we use the transpose of that incidence matrix:
 <h2 id="sec-7">Table of available options </h2>
 <div id="text-7">
 
-<p>In addition to the action:&lt;some-action&gt; option (described <a href="#sec-8">here)</a>, the
+<p>In addition to the action:&lt;some-action&gt; option (described <a href="#sec-8">here</a>, the
 following options are available:
 </p><table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
 <col align="left"></col><col align="left"></col>
@@ -799,16 +776,9 @@ following options are available:
 <h2 id="sec-8"><a name="action==list" id="action==list"></a>Table of available actions </h2>
 <div id="text-8">
 
-<p>e.g. action:hist on the TBLR line.
+<p>To specify an action from the following list, use e.g. action:hist on
+the TBLR line.
 </p>
-
-</div>
-
-<div id="outline-container-8.1" class="outline-3">
-<h3 id="sec-8.1">Actions that generate numerical output* </h3>
-<div id="text-8.1">
-
-
 <table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
 <col align="left"></col><col align="left"></col>
 <thead>
@@ -843,9 +813,14 @@ following options are available:
 
 
 
+<p>
+Apart from tabulate, the action: names are the same as the names of
+the R functions which implement them. `tabulate' is really called
+`table' in R.
+</p>
 <p>
 Note that, in addition to the actions listed below, you can also use
-action:R-function, where "R-function" is the name of an existing R
+action:R-function, where "R-function" is the name of any existing R
 function. The function must be able to take a data frame as it's first
 argument, and must not <b>require</b> any further arguments (i.e. any
 further arguyments must have suitable default values). Any numerical
@@ -853,7 +828,6 @@ output will be sent to the org buffer (use output-to-buffer:t to force
 this, although if that is necessary then that is a bug).
 </p>
 
-</div>
 </div>
 
 </div>
@@ -918,7 +892,7 @@ New York Times this year?
 <div id="postamble"><p class="author"> Author: Dan Davison
 <a href="mailto:davison@stats.ox.ac.uk">&lt;davison@stats.ox.ac.uk&gt;</a>
 </p>
-<p class="date"> Date: 2009-02-03 13:27:00 EST</p>
+<p class="date"> Date: 2009-02-03 17:36:34 EST</p>
 <p>HTML generated by org-mode 6.20f in emacs 22</p>
 </div></body>
 </html>

+ 21 - 36
org-tutorials/org-R/org-R.org

@@ -150,26 +150,7 @@ than 2 columns: org does not do multi-dimensional tables).
    [e.g. a data set in which each point is a time,
     together with the size of the org source code base at that time]
 
-    Here are the available plotting actions, classified by type of data.
-
-| action:  | data type      | description                                                           |
-|----------+----------------+-----------------------------------------------------------------------|
-| barplot  | discrete       | produces 'side-by-side' bar plots if multiple columns selected        |
-| tabulate | discrete       | not a plotting action; it outputs a new org table                     |
-|----------+----------------+-----------------------------------------------------------------------|
-| plot     | indexed        | if only 1 column selected, index is automatic: 1,2,...                |
-| lines    | indexed        | same as plot                                                          |
-| points   | indexed        | same as plot but don't join points with lines                         |
-|----------+----------------+-----------------------------------------------------------------------|
-| hist     | continuous     | histogram                                                             |
-| density  | continuous     | like a smoothed histogram (i.e. a curve)                              |
-|----------+----------------+-----------------------------------------------------------------------|
-| image    | grid of values | draws a grid, with cells coloured according to their numerical values |
-|          |                |                                                                       |
-
-[Apart from tabulate, the action: names are the same as the names of
-the R functions which implement them. `tabulate' is really called
-`table' in R.]
+The available off-the-shelf actions are listed [[*Table of available actions][here]].
 
 ** Continuous data example:
     :PROPERTIES:
@@ -304,21 +285,19 @@ We can see the top few rows of the table by using action:head
 
 #+end_example
 
-
-Here's a histogram of the counts. As we've seen, few variables have
-been customised by many users.
+Here's a barplot of the counts. It makes it clear that over half the
+org variables are customised by only one or two users.
 
 #+begin_example
 
-
-[[file:org-variables-hist.png][org-variables-hist]]
-#+TBLR: action:hist rownames:t columns:1
+[[file:org-variables-barplot.png][org-variables-barplot]]
+#+TBLR: action:barplot rownames:t columns:1 width:800 col:darkblue
+#+TBLR: args:(:names.arg "NULL")
 #+TBLR: infile:"org-variables-counts.org" intable:"org-variables-counts"
-#+TBLR: outfile:"org-variables-hist.png" title:"org-variables-hist"
+#+TBLR: outfile:"org-variables-barplot.png" title:"org-variables-barplot"
+
+#+end_example    
 
-#+end_example
-[[file:../../images/org-R/org-variables-hist.png]]
-    
 *** Something more complicated: clustering org variables, and org users
 
      OK, let's make a bit more use of R's capabilities. We can use the
@@ -365,7 +344,8 @@ as a dendrogram:
 #+begin_example
 
 [[file:org-users-tree.png][org-users-tree.png]]
-#+TBLRR: plot(hclust(dist(x, method="binary")), xlab="")
+#+TBLRR: par(bg="gray15", fg="turquoise2")
+#+TBLRR: plot(hclust(dist(x, method="binary")), ann=FALSE)
 #+TBLR: infile:"org-variables-incidence.org" intable:"incidence-matrix" rownames:t
 #+TBLR: outfile:"org-users-tree.png" title:"org-users-tree.png"
 
@@ -378,7 +358,7 @@ And to cluster org variables, we use the transpose of that incidence matrix:
 
 [[file:org-variables-tree.png][org-variables-tree.png]]
 #+TBLRR: par(bg="gray15", fg="turquoise2")
-#+TBLRR: plot(hclust(dist(t(x), method="binary")), xlab="")
+#+TBLRR: plot(hclust(dist(t(x), method="binary")), ann=FALSE)
 #+TBLR: infile:"org-variables-incidence.org" intable:"incidence-matrix" rownames:t
 #+TBLR: outfile:"org-variables-tree.png" title:"org-variables-tree.png" width:1000
 
@@ -411,7 +391,7 @@ recognise any usage affinities between the clustered org users?
 [[file:../../images/org-R/org-plot-example-1.png]]
 
 * Table of available options
-  In addition to the action:<some-action> option (described [[*Table of available actions][here)]], the
+  In addition to the action:<some-action> option (described [[*Table of available actions][here]], the
   following options are available:
 |-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------|
 | *Input options*                               |                                                                                                                                        |
@@ -451,8 +431,9 @@ recognise any usage affinities between the clustered org users?
 | showcode:t                                    | Display a buffer containing the R code that was generated to do what was requested.                                                    |
   
 * Table of available actions
-# <<action list>> To specify an action from the following list, use
-e.g. action:hist on the TBLR line.
+# <<action list>>
+To specify an action from the following list, use e.g. action:hist on
+the TBLR line.
 
 | *Actions that generate numerical output* |                                                                                                         |
 |------------------------------------------+---------------------------------------------------------------------------------------------------------|
@@ -480,8 +461,12 @@ e.g. action:hist on the TBLR line.
 | image                                    | a grid image, with cells coloured according to their numerical values                                   |
 
 
+Apart from tabulate, the action: names are the same as the names of
+the R functions which implement them. `tabulate' is really called
+`table' in R.
+
   Note that, in addition to the actions listed below, you can also use
-action:R-function, where "R-function" is the name of an existing R
+action:R-function, where "R-function" is the name of any existing R
 function. The function must be able to take a data frame as it's first
 argument, and must not *require* any further arguments (i.e. any
 further arguyments must have suitable default values). Any numerical

BIN
org-tutorials/org-R/org-users-tree.png


BIN
org-tutorials/org-R/org-variables-barplot.png


BIN
org-tutorials/org-R/org-variables-hist.png


BIN
org-tutorials/org-R/org-variables-tree.png