[Rd] Problem with pdf graphics device

Marc Schwartz
2009-11-05T17:26:42Z

On Nov 5, 2009, at 11:15 AM, Dominick Samperi wrote:

> This code does not work as expected:
>
> pdf("foo.pdf")
> x <- 1:20
> y <- sin(x)
> plot(x,y)
> dev.off()
>
> Instead of little circles at the points I get the letter 'q', and
this
> happens for the default pch, pch=1, pch=21. If I set pch='o' I
> get the circles, but of course they are not centered. The problem
> occurs with pdf viewer and with printing under Linux,
> R 2.10.0.
>
> Everything works as expected if I use other display devices.


See ?pdf and read through the "Note" section.

This was just covered on r-devel only days ago:

   https://stat.ethz.ch/pipermail/r-devel/2009-October/055357.html

HTH,

Marc Schwartz