Skip to content

Instantly share code, notes, and snippets.

@gtuckerkellogg
Created September 9, 2012 04:31
Show Gist options
  • Save gtuckerkellogg/3682592 to your computer and use it in GitHub Desktop.
Save gtuckerkellogg/3682592 to your computer and use it in GitHub Desktop.
#+TITLE: iKNOW alternative block
#+AUTHOR: Greg Tucker-Kellogg
#+EMAIL: gtuckerkellogg@gmail.com
#+DATE: 2012-09-09 Sun
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:
#+XSLT:
* Plotting Data
#+CAPTION: Comparison of the two task conditions for re-finding: tagstore and folders. There is no significant difference between the two conditions.
#+ATTR_LaTeX: width=0.5\textwidth
#+LABEL: fig:boxplots
#+NAME: boxplot-data
#+BEGIN_SRC R :exports both :results graphics :file my_boxplot_data.png
## following two commands compensate a bug
## in the Babel method which should be fixed soon:
mFdata=c(4.3, 3.72, 5.1, 4.03, 5.7, 6.97, 5.68,
11.02, 4.45, 3.07, 12.32, 5.05, 7.95,
5.72, 4.77, 3.65, 6.53)
mTSdata=c(3.95, 4.25, 5.22, 6.2, 5.27, 10.27,
4.63, 5.97, 3.27, 4.55, 4.55, 6.92,
7.48, 6.57, 7.25)
boxplot(list(mTSdata, mFdata),
names=c("tagstore", "folders"),
xlab="Task Times", ylab="Seconds",
pars = list(boxwex = 0.3, staplewex = 0.5,
boxfill="lightblue"))
#+END_SRC
#+RESULTS: boxplot-data
[[file:my_boxplot_data.png]]
The resulting graph visualizes the overall result of the two test conditions in form of a boxplot[fn:boxplot]: the average task times in the \emph{tagstore} condition and the folders condition.
The label keyword above created a reference to Figure \ref{fig:boxplots}
Every single step from the raw data from the \myacro{CSV} file to the graph can be completely checked and re-created by anybody who wants to do so. This method of Reproducible Research guarantees the highest level of transparency and confirmability.
[fn:boxplot] http://en.wikipedia.org/wiki/Box_plot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment