[Tikzdevice-bugs] clash when package transparent

Matthieu Stigler matthieu.stigler at gmail.com
Wed Sep 7 14:48:23 CEST 2011


Hi

I am discovering an interesting issue when using tikz for ggplot2, in a 
LaTeX document where package transparent is loaded...

Basically, when the user does not specify explicitely which color should 
be used in ggplots bars (the color for outer lines of bars, not for 
inner fill), ggplot will not put any. tikz seems to be doing the same. 
However, things change when the package transparency is loaded: outer 
lines are now visible!

Please compare reproducible example below, adding/removing % 
\usepackage{transparent}:

library(ggplot2)
library(tikzDevice)

options( tikzLatexPackages = c(
"\\usepackage{tikz}",
"\\usepackage{transparent}",
"\\usepackage[active,tightpage]{preview}",
"\\PreviewEnvironment{pgfpicture}",
"\\setlength\\PreviewBorder{0pt}")
)

tikz(standAlone=TRUE)
diamonds2<-droplevels(subset(diamonds, color%in%c("E","I")))
qplot(carat, data = diamonds2, geom = "bar", fill = 
color)#+myScale_fill3()+scale_colour_manual(value = 
rep(c(part1_sec1,part1_sec2),3))
dev.off()


Do you confirm outer lines change with/without pkg transparent or is it 
specific to my computer? Were you aware of this? How can one solve it?

Thanks!!

Matthieu




More information about the Tikzdevice-bugs mailing list