[R] tikzDevice

David Arnold dwarnold45 at suddenlink.net
Sun Jul 28 04:25:37 CEST 2013


The following minimal example Sweave file compiled properly in RStudio.

\documentclass{article}

\begin{document}

Example text outside R code here; we know the value of pi is \Sexpr{pi}.
<<my-label, eval=TRUE, dev='tikz'>>=
set.seed(1213)  # for reproducibility
x = cumsum(rnorm(100))
mean(x)  # mean of x
plot(x, type = 'l')  # Brownian motion
@
Other text outside R code here.

\end{document}

Result:  junk.pdf <http://r.789695.n4.nabble.com/file/n4672526/junk.pdf>  



--
View this message in context: http://r.789695.n4.nabble.com/tikzDevice-tp4672523p4672526.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list