My example is:
\documentclass[12pt]{article} \begin{document} <<eg, dev='tikz', size='normalsize', echo=FALSE, message=FALSE, warning=FALSE, sanitize=TRUE>>= require(ggplot2) p1 <- ggplot() + geom_segment(aes(x = 1, y = 1, xend = 2, yend = 2), linetype= 2) p1 @ \end{document} Which generates a dashed line (when using other graphics devices). When using tikz, there is a thin black line sitting underneath the dashed line. Any ideas as to how to get rid of this?