I have a problem with knitr and tikzDevice, like someone before me. (See tikzDevice is not getting sizes right (knitr) .) He used dev.args to get rid of this error, but if I run this code through knitr (with rstudio), the fontsize is still messed up. dev.args=list(pointsize=12) doesn't work for me. The only thing that works, is to remove a4paper,12pt. Any ideas on what I did do wrong?
\documentclass[a4paper,12pt]{scrartcl}
\begin{document}
\begin{figure}
<<dev='tikz', dev.args=list(pointsize=12)>>=
x<-1
plot(x)
@
\end{figure}
\end{document}