Test
Table of Contents
1 Example of Org-Babel for R Literate Programming
1.1 R text output
A simple summary.
x <- rnorm(10)
summary(x)
Min. 1st Qu. Median Mean 3rd Qu. Max. -2.0379 0.1207 0.3775 0.3122 0.6094 2.0433
1.2 R graphics output
Note we use the object x
generated in previous code block, thanks to
the header option :session *R*
. The output graphics file is
a.png
.
y <- rnorm(10)
plot(x, y)
Same plot with larger dimension:
plot(x, y)
2 Example of math
\begin{equation}
y = \exp\left[\frac{(x-\mu)^{2}}{2\sigma^{2}}\right]
\end{equation}
3 Example of citations
references.bib is taken from https://gitlab.com/aprl/bibfile.
(make-local-variable 'citeproc-org-suppress-affixes-cite-link-types) (setq citeproc-org-suppress-affixes-cite-link-types '("citealt" "citet")) ; default is '("citealt")
Lowry et al. (1951)
Bibliography
Lowry, O. H., Rosebrough, N. J., Farr, A. L., & Randall, R. J. (1951). PROTEIN MEASUREMENT WITH THE FOLIN PHENOL REAGENT. Journal of Biological Chemistry, 193(1), 265–275. Retrieved from http://www.jbc.org/content/193/1/265.short