mirror of https://github.com/mpastell/Weave.jl
Update examples and Readme
parent
e20025315d
commit
b9bf5a4b62
|
@ -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
|
||||
|
|
|
@ -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)))
|
||||
@
|
||||
|
|
|
@ -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)")
|
||||
|
|
Loading…
Reference in New Issue