Questions tagged [tikzdevice]

37 questions
0
votes
2 answers

tikzDevice does not use LaTeX preamble when used in RMarkdown document

I want to use tikz as graphics device in RMarkdown and I want it to include the generated LaTeX preamble. In the past, I already used tikzDevice within knitr documents. The tex file generated by tikzDevice usually included the whole preamble from my…
julianre
  • 21
  • 7
0
votes
1 answer

Plot annotation in R-Markdown + tikzDevice

I'm preparing a presentation using R-Markdown + Beamer, and want every plot annotation to be typeset with a serif font. Here's a minimal example (in order to run this, the code should be pasted in a .Rmd file and compiled with knitr): --- title: An…
user127022
  • 101
  • 2
0
votes
2 answers

R tikzDevice: Cannot find LaTeX

I can't get the R package tikzDevice to running. I installed MiKTex and I don't have problems to produce documents like this one via TeXworks. Exporting plots via tikzDevice unfortunately doesn't work, for example the following code from here…
locom
  • 115
  • 9
0
votes
1 answer

tikzDevice error with knitr

I'm trying to reproduce knitr-minimal.Rnw with dev='tikz' option which produces the following error: tikzDevice: R Graphics Output in LaTeX Format (v0.6.2-92-0ad2792) LaTeX found in the PATH using the command: pdflatex XeLaTeX found in the PATH…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
0
votes
1 answer

University document class and tikzpicture generated by R's ggplot and tikzdevice

I'm using the university document class, and I guess that this class is somehow affecting the layout of the legend keys and legend labels of plots generated using R's ggplot2 and tikzDevice. In order to reproduce this issue, please run the following…
0
votes
0 answers

R tikzdevice relative directories

I have also asked this on tex.stackexchange.com: This is a problem which I face with many many plots. Lets say I create a ggplot2 plot, with a colourbar: sample = ggplot(data=data.frame(x=runif(10),y=runif(10)),aes(x,y)) + …
Nicholas Hamilton
  • 10,044
  • 6
  • 57
  • 88
0
votes
1 answer

tikzDevice not working for basic example

Consider the following example: library(tikzDevice) tikz("test.tex") plot(1:10) dev.off() An error will be produced once the plot is created, with a lot of code but near the end the error appears: ("C:\ProgramError in…
cgmil
  • 410
  • 2
  • 18
1 2
3