Re: [R] tikzDevice and Sweave

2016-01-18 Thread Yihui Xie
4, height = 3) > plot(sin, -pi, 2*pi, main = "A stand alone TikZ plot", xlab = "x", ylab = > "sin(x)") > dummy <- dev.off() > cat("\\input{tikzFig.tex}") > @ > > As mentioned, this is a bit simpler in knitr. > > Duncan Murdoch >

Re: [R] tikzDevice and Sweave

2016-01-18 Thread Duncan Murdoch
x}") @ As mentioned, this is a bit simpler in knitr. Duncan Murdoch Naresh From: dulca...@bigpond.com To: r-help@r-project.org Date: Mon, 18 Jan 2016 14:17:42 +1000 Subject: Re: [R] tikzDevice and Sweave Hi I use Sweave and some tikz in latex but

Re: [R] tikzDevice and Sweave

2016-01-17 Thread Duncan Mackay
--Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Naresh Gurbuxani Sent: Monday, 18 January 2016 06:54 To: R-help@r-project.org Subject: Re: [R] tikzDevice and Sweave Resending as a useable example \documentclass{article} \usepackage{tikz} \begin{document} Fi

Re: [R] tikzDevice and Sweave

2016-01-17 Thread Duncan Murdoch
On 17/01/2016 3:40 PM, Duncan Murdoch wrote: On 17/01/2016 3:25 PM, Naresh Gurbuxani wrote: I want to use tikz() function in tikzDevice package so that it generates a pdf file to be included in the bigger tex file. Below code works, but directly inserts tikz commands in the output tex file. T

Re: [R] tikzDevice and Sweave

2016-01-17 Thread Duncan Murdoch
On 17/01/2016 3:25 PM, Naresh Gurbuxani wrote: I want to use tikz() function in tikzDevice package so that it generates a pdf file to be included in the bigger tex file. Below code works, but directly inserts tikz commands in the output tex file. This works: <>= This does not work: <>= Full co

[R] tikzDevice and Sweave

2016-01-17 Thread Naresh Gurbuxani
I want to use tikz() function in tikzDevice package so that it generates a pdf file to be included in the bigger tex file. Below code works, but directly inserts tikz commands in the output tex file. This works: <>= This does not work: <>= Full code is given below: \documentclass{article}\use