Hey!I'm using knitr to write my thesis and I have a heatmap that I want to include. The plot is beautiful when I generate it from R, but when I make it "live" from latex / knitr, there are lots of very fine horizontal and vertical white lines. The lines are present in the pdf text document as as the pdf file containing only the graph (the one that knitr makes). I've played with the dpi settings in the knitr chunk, but that makes no difference. Any ideas?Minimal working example:###library(ggplot2)
library(reshape)
grid. <- do.call(rbind, lapply(1:100, function(x) rep(x, 100)))
heat <- melt(grid.)
ggplot(heat, aes(x = X1, y = X2)) + geom_tile(aes(fill = value))###The knitr options are:\SweaveOpts{cache = TRUE, echo = FALSE, fig.align = "center", fig.width = 5, fig.height = 5, out.width = "0.7\\textwidth"}and there are no local chunk options.The pdf outputted by knitr (and imported into my text document pdf) is attached. How do I get rid of the white lines?? They don't seem to be particularly consistently spaced, nor do they line up with the underlying plot background. Looks like a visual artefact.Thanks in advance!--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
<heat.pdf>
Benjamin Høyer
+45 42403250