Skip to content

Commit

Permalink
copy example
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMount committed Dec 13, 2015
1 parent f61d027 commit 3c7594f
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 0 deletions.
42 changes: 42 additions & 0 deletions RunExamples/00203_example_10.1_of_section_10.2.1.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# example 10.1 of section 10.2.1
# (example 10.1 of section 10.2.1) : Documentation and deployment : Using knitr to produce milestone documentation : What is knitr?
# Title: knitr-annotated Markdown

# Simple knitr Markdown example # Note: 1

Two examples:

* plotting
* calculating

Plot example:
```{r plotexample, fig.width=2, fig.height=2, fig.align='center'} # Note: 2
library(ggplot2) # Note: 3
ggplot(data=data.frame(x=c(1:100),y=sin(0.1*c(1:100)))) +
geom_line(aes(x=x,y=y))
``` # Note: 4
Calculation example: # Note: 5
```{r calcexample} # Note: 6
pi*pi
```

# Note 1:
# Markdown text and formatting

# Note 2:
# knitr chunk open with option
# assignments

# Note 3:
# R code

# Note 4:
# knitr chunk close

# Note 5:
# More Markdown text

# Note 6:
# Another R code chunk

146 changes: 146 additions & 0 deletions RunExamples/00203_example_10.1_of_section_10.2.1.html

Large diffs are not rendered by default.

0 comments on commit 3c7594f

Please sign in to comment.