Update examples and Readme

pull/17/head
Matti Pastell 2014-12-04 22:10:24 +02:00
parent e20025315d
commit b9bf5a4b62
3 changed files with 6 additions and 5 deletions

View File

@ -22,11 +22,12 @@ and Sweave.
## Chunk options
You can use the same chunk options as for Pweave, but the format is different. Options are separated
using ";" and need to be valid Julia expressions. e.g.
I've tried to follow [Knitr](http://yihui.name/knitr/options)'s naming for chunk options, but not all options are implemented.
You can see [`src/config.jl`](https://github.com/mpastell/JuliaReport.jl/blob/master/src/config.jl) for the current situation.
Options are separated using ";" and need to be valid Julia expressions. e.g.
<<term=true; fig=false>>=
<<term=true; fig_width=6; fig_height=4>>=
## Usage

View File

@ -35,6 +35,6 @@ ylabel("sinc(x)")
You can also include a plot with caption and hide the code:
<<echo=false; caption="Random walk."; label="random">>=
<<echo=false; fig_cap="Random walk."; label="random">>=
plot(cumsum(randn(1000, 1)))
@

View File

@ -33,7 +33,7 @@ p = plot(t, sinc(t))
You can also include a plot with caption and hide the code:
<<echo=false; caption="Random walk."; label="random"; fig_width=8; fig_height=4>>=
<<echo=false; fig_cap="Random walk."; label="random"; fig_width=8; fig_height=4>>=
p = plot(cumsum(randn(1000, 1)))
xlabel("x")
ylabel("sinc(x)")