[R-SIG-Mac] [R] Sweave, lty = 3 line incorect in pdf output
ken.knoblauch at inserm.fr
Thu Feb 11 11:42:25 CET 2010
Indeed, you are right. That is where the problem is.
Thanks for helping localize it a bit further.
So, I should cc this to the r-sig-mac list.
For the r-sig-mac list, here is the original post on the r-help
The pdf() command (at least on my Mac :( ) appears to have
a problem in displaying dotted lines (lty = 3).
pdf(file = "test.pdf", height = 6, width = 6)
x <- 1:10
plot(x, type = "l", lty = 3, lwd = 3)
lines(x, 0.5 * x, type = "l")
Hopefully, this is not yet another instance of R-Mac-FAQ 12.10
but something more easily treated.
R version 2.10.1 Patched (2010-02-01 r51089)
attached base packages:
 stats graphics grDevices utils datasets methods
loaded via a namespace (and not attached):
R.app GUI 1.32-dev (5548 Leopard build 32-bit),
Quoting Achim Zeileis <Achim.Zeileis at uibk.ac.at>:
> an idea off-list: Have you tried
> pdf(file = "test.pdf", height = 6, width = 6)
> with your code? This is essentially what Sweave should do internally.
> If that replicates your problem, it might be a hint that something with
> pdf() is not working on your machine (rather than Sweave()).
Stem-cell and Brain Research Institute
Department of Integrative Neurosciences
18 avenue du Doyen Lépine
tel: +33 (0)4 72 91 34 77
fax: +33 (0)4 72 91 34 61
portable: +33 (0)6 84 10 64 10
More information about the R-SIG-Mac