Re: [Rd] Problem with pdf graphics device

From: Marc Schwartz <marc_schwartz_at_me.com>
Date: Thu, 05 Nov 2009 11:26:42 -0600

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 05 Nov 2009 - 17:29:44 GMT

This archive was generated by hypermail 2.2.0 : Thu 05 Nov 2009 - 20:00:21 GMT