Re: [R] quick "points" question

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed 28 Sep 2005 - 02:02:32 EST

On Tue, 27 Sep 2005, Richard Nixon wrote:

> Hi
> Just one of those niggles.......
>
> I've just been trying to plot a filled circle.
> I thought that this would do it
>
> plot(1,1,type="n")
> points(1,1,pch=1,bg="blue",cex=5)
> #bg: background ("fill") color for open plot symbols
>
> But I need to do this instead
> points(1.2,1,pch=19,col="blue",cex=5)
>
> Am I misunderstanding the "bg" option in the points function?

Yes. See the examples. pch=1 is not an `open plot symbol': 21-25 are. So in your case

points(1.3, 1, pch=21, col="blue", bg="red", cex=5)

may be illuminating.

-- 
Brian D. Ripley,                  ripley@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@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Sep 28 02:12:13 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 17:48:01 EST