Re: [R] Point size problem

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu, 26 Jun 2008 10:54:42 +0100 (BST)

On Thu, 26 Jun 2008, Marcin Kozak wrote:

> Hi all,
>
> I have a simple question and couldn't find any post on this. When
> plotting simple scatterplots (other plots as well), e.g.,
>
> x<-rnorm(30, 10, 1)
> y<-rnorm(30, 10, 1)
> plot(x, y, pch = 15, cex = 1),
>
> the points, even those close to each other, may have visibly different
> sizes. Do you know what's going on with that?

No, because you haven't followed the posting guide and told us your OS, R version and what graphics device this is.

This may be an artefact of rasterization in the device, since you are plotting squares with numeric (not integer) coordinates, and these need to be mapped to pixels on a screen device. So for example the interval (3.7, 6.0) might light up 3 pixels, and (3.4, 5.7) might light up 4.

>
> Thanks in advance,
> Marcin
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 26 Jun 2008 - 09:58:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 26 Jun 2008 - 13:31:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive