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.120  -0.229   0.478   0.113   0.822   0.947

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)

a.png

Same plot with larger dimension:

plot(x, y)

b.png

Date: 2011-08-09 17:08:05 EDT

Author: Your Name

Org version 7.7 with Emacs version 23